diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-28 19:00:17 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-28 19:00:17 +0200 |
| commit | 04fd17c7f7f6c489238cccc2b34f3f2b42a12c62 (patch) | |
| tree | 558765d2219384baa09e07ef4fa4268781a9c577 /frontends/var | |
| parent | 755ede6cdae8570037a7cf59218f2baebbcdd631 (diff) | |
Add cache-control headers to f3s fallback page
- Add meta tags to prevent browser caching of fallback page
- Add response header directives in relayd to set Cache-Control headers
- Prevents cached fallback page from being served when cluster comes back online
Amp-Thread-ID: https://ampcode.com/threads/T-019c0589-2021-71cc-a2ba-2cd942f4fdef
Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'frontends/var')
| -rw-r--r-- | frontends/var/www/htdocs/f3s_fallback/index.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frontends/var/www/htdocs/f3s_fallback/index.html b/frontends/var/www/htdocs/f3s_fallback/index.html index a84151a..c872241 100644 --- a/frontends/var/www/htdocs/f3s_fallback/index.html +++ b/frontends/var/www/htdocs/f3s_fallback/index.html @@ -2,6 +2,9 @@ <html> <head> <title>Server turned off</title> + <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> + <meta http-equiv="Pragma" content="no-cache" /> + <meta http-equiv="Expires" content="0" /> <style> body { font-family: sans-serif; |
