GRI-2082: set Cache-Control on panel index.html and hashed assets #215

Merged
vivy merged 1 commit from feature/GRI-2082-panel-cache-control into dev 2026-11-15 10:29:39 +00:00
Member

Summary

  • Panel's index.html is now served with Cache-Control: no-cache (direct and SPA fallback), so browsers revalidate instead of silently serving a stale shell after an upgrade.
  • Hashed /assets/* files get Cache-Control: public, max-age=31536000, immutable.
  • Any other static file under the panel directory gets no-cache.

Closes #205

Test plan

  • scripts/local-gates.sh --rust-only passes, including new tests on router_with_panel covering /, an SPA path, and a hashed asset.
## Summary - Panel's `index.html` is now served with `Cache-Control: no-cache` (direct and SPA fallback), so browsers revalidate instead of silently serving a stale shell after an upgrade. - Hashed `/assets/*` files get `Cache-Control: public, max-age=31536000, immutable`. - Any other static file under the panel directory gets `no-cache`. Closes https://git.grimoirix.org/Grimoirix/grimoire-of-digital-signage/issues/205 ## Test plan - [x] `scripts/local-gates.sh --rust-only` passes, including new tests on `router_with_panel` covering `/`, an SPA path, and a hashed asset.
GRI-2082: set Cache-Control on panel index.html and hashed assets
All checks were successful
CI / the pre-push hook (pull_request) Successful in 32s
CI / cargo fmt (pull_request) Successful in 42s
CI / cargo deny (pull_request) Successful in 2m2s
CI / cargo deny advisories (pull_request) Successful in 1m52s
CI / cargo clippy (pull_request) Successful in 3m14s
CI / repository boundary (pull_request) Successful in 47s
CI / frontend-web (pull_request) Successful in 1m47s
CI / cargo test (pull_request) Successful in 4m59s
CI / Notify gate failed (pull_request) Has been skipped
CI / CI (pull_request) Successful in 46s
24038b459b
vivy merged commit 712dc6c5c6 into dev 2026-11-15 10:29:39 +00:00
vivy deleted branch feature/GRI-2082-panel-cache-control 2026-11-15 10:29:39 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!215
No description provided.