Skip to content
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

handle Etag to allow server sending NotModified 304 responses #116

Open
hthetiot opened this issue Aug 21, 2018 · 0 comments
Open

handle Etag to allow server sending NotModified 304 responses #116

hthetiot opened this issue Aug 21, 2018 · 0 comments
Assignees

Comments

@hthetiot
Copy link
Contributor

hthetiot commented Aug 21, 2018

etag to be put on the new auth request with the data from the old auth request, such that a 304 can result in not needing to update the cache

From http://www.w3.org/TR/2012/WD-XMLHttpRequest-20121206/
For 304 Not Modified responses that are a result of a user agent generated conditional request the
user agent must act as if the server gave a 200 OK response with the appropriate content.
The user agent must allow author request headers to override automatic cache validation
(e.g. If-None-Match or If-Modified-Since), in which case 304 Not Modified responses must be passed through. [HTTP]

I find this rather vague. My assumption would be if a resource is conditionally requested,
you would see the 304 response code. But, as I explained in another comment
(source: https://developers.google.com/speed/docs/best-practices/caching), there might not even
be a request if the last response server http header for that resource had set
Cache-Control: max-age or Expires set sometime in the future.

@hthetiot hthetiot self-assigned this Aug 21, 2018
@hthetiot hthetiot changed the title handle Etag to allow server serve NotModified 304 responses handle Etag to allow server sending NotModified 304 responses Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant