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

Dangerous Cache-Control headers #11

Open
mcsimps2 opened this issue Aug 24, 2023 · 0 comments
Open

Dangerous Cache-Control headers #11

mcsimps2 opened this issue Aug 24, 2023 · 0 comments

Comments

@mcsimps2
Copy link

The nginx reverse proxy configuration sets a dangerous Cache-Control header that likely isn't intended for most users.

add_header Cache-Control "public,max-age=31536000";

For non-crawler users, this directs their browser to cache the response for a year.

In my case, the webpages in my app are now refusing to update in client browsers because of this long cache policy. I'm trying to alleviate the issue by modifying the response etag, but in the end, it's up to the browser to decide to revalidate the cache even though the cache expiration is a year.

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