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

Problem with maxAge parameter #1650

Closed
ale5000-git opened this issue Apr 16, 2018 · 0 comments · Fixed by #1651
Closed

Problem with maxAge parameter #1650

ale5000-git opened this issue Apr 16, 2018 · 0 comments · Fixed by #1651

Comments

@ale5000-git
Copy link

ale5000-git commented Apr 16, 2018

If I set maxAge=3600 then it set Cache-Control header correctly but it doesn't set Expires header accordingly that make it useless (instead it is set to a past date, by some seconds).

Responding with a past date in the Expired header (earlier than the Date header value) makes no sense and would be a sign of some serious misconfiguration. That being said, clients would treat such response as "already expired" and not cache it. Same applies if Expires date is equal to Date header value (which is the correct way of server marking the response as "already expired") or having an invalid format.

Deploy status

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

Successfully merging a pull request may close this issue.

1 participant