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

ttl expired -> request contains eTag/last-mod -> current behavior is wrong #55

Open
a-luna opened this issue Jul 7, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@a-luna
Copy link
Owner

a-luna commented Jul 7, 2021

when a browser sends a request where the time indicated by the value of the max-age directive or expires header is in the past, the correct behavior is to:

  • revalidate the clients copy
  • if the eTag has changed or last-mod time is different than the client's copy:
    • send a 200 response, including the new version of the content
  • if the eTag has not changed or last-mod time is the same as the client's copy:
    • send a 304 response with no body content, and header values that indicate max-age/expires time

currently, when the ttl has elapsed and a request is received for the expired data, no revalidation is performed and a 200 response is always sent that includes the entire response data.

@a-luna a-luna added the bug Something isn't working label Jul 7, 2021
@a-luna a-luna self-assigned this Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant