blumeops/ansible
Erich Blume 696bc49290 Add SPA cache policy for authentik in Caddy
Authentik's frontend uses content-hashed JS chunks, but the HTML pages
that reference them had no Cache-Control headers. When the server
restarts with new chunk hashes, browsers serve stale cached HTML that
404s on old chunk names, showing a throbber instead of the login form.

Set Cache-Control: no-cache on /if/* (HTML flow pages) so browsers
always revalidate, and Cache-Control: immutable on /static/dist/*
(hashed assets) for efficient caching. Adds a reusable `cache_policy:
spa` option to caddy_services.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 21:28:28 -07:00
..
inventory Add NixOS configuration for ringtail workstation (#207) 2026-02-18 08:24:25 -08:00
playbooks Expose Forgejo publicly at forge.eblu.me (#278) 2026-03-03 08:40:41 -08:00
roles Add SPA cache policy for authentik in Caddy 2026-04-01 21:28:28 -07:00
ansible.cfg
requirements.yml