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

Mark plone.stableResource responses as immutable #123

Open
davisagli opened this issue Mar 29, 2023 · 0 comments
Open

Mark plone.stableResource responses as immutable #123

davisagli opened this issue Mar 29, 2023 · 0 comments

Comments

@davisagli
Copy link
Member

The plone.stableResource ruleset sets a Cache-Control header with a long max-age (31536000) to allow caching for up to a year. But if the client force-reloads so that a request is made with Cache-Control: nocache, the resource will still be refetched.

Looks like it might be possible to avoid that by including immutable in the response's Cache-Control header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#avoiding_revalidation

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