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

Consider adding expiration/TTL to maintenance page to help avoid caching maintenance page for too long #407

Closed
gilbertozp opened this issue Sep 14, 2023 · 0 comments · Fixed by #413

Comments

@gilbertozp
Copy link

The maintenance page (error503.html) doesn't have an expiration timestamp. Adding one, e.g., for 1-2h in the future, might help with preventing browsers/http caches for keeping the page without updates for longer than necessary after returning to normal operations.

Adding and "expires" tag might be one way to go:
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />

Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires

Adding cache control might also be an option (maybe works better with http proxy caches?):
Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

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