-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add last modified support #8
Add last modified support #8
Conversation
Adds `Last-Modified` header support and enables this (and `ETag`s) by default for rtrmon. I'm using rtrmon with a backend that suports `If-Modified-Since` but not `If-None-Match`. To poll this often (sub-minute interval) it is better to use conditional requests.
@ties thanks! Conditional requests are very useful indeed! You indicate that your backend does not support
|
@job I agree that is is good to be careful about this. The current status is:
Because it is already used in I can test |
Hi @ties You wrote:
Did you mean to say "If-none-match gets disabled in stayrtr by default" ? |
Hi @job
I think it is already enabled by default. The new part ( |
Nice clean commits. Thanks for the contrib! |
I think it was safe to merge. Thanks for handling this quickly :). |
Adds
Last-Modified
header support and enables this (andETag
s)by default for rtrmon.
I'm using rtrmon with a backend that suports
If-Modified-Since
but not
If-None-Match
. To poll this often (sub-minute interval)it is better to use conditional requests.
I am not sure if it makes sense to enable this by default for
stayrtr
. My understanding is that the combination of both headers should be handled properly by back-ends (and are sent by browsers) - so it should be safe to do.Furthermore I am not a golang expert, so this change is a bit mechanical, let me know what you think.