Skip to content

fix(wall): serve the wall page's files with Cache-Control: no-cache - #1736

Merged
Gerrrt merged 2 commits into
mainfrom
wall-no-cache
Nov 25, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
wall-no-cache

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 24, 2026

Copy link
Copy Markdown
Owner

What changed

wall.matrix.elysium's static handle (the page, wall.js, wall.css) now sends Cache-Control: no-cache, so each load revalidates with Caddy (a 304 when nothing changed) instead of reusing the browser's copy. The API handles are unchanged; the page already fetches them with cache: "no-store".

Why

After #1732 deployed to trinity at c5374a15, heimdall's kiosk kept the old wall.js through a Chromium restart. Caddy's log showed it fetched neither / nor wall.js, and kept asking for the removed /api/q/rtt, /api/ha/office_light and /api/ha/dogs (404). Caddy sent no caching header, so Chromium kept its copy on a freshness it guessed from Last-Modified, which for files weeks old is days. Clearing its Cache_Data and restarting it fixed the screen by hand. Without this header, wall.js's six-hourly reload, meant to bring in changes merged to main, can't do that.

Blast radius

trinity's Caddy, wall.matrix.elysium only. If wrong, the page loads as before, or costs one extra conditional request per file per load.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • python scripts/check_docs.py: docs OK.

  • ./scripts/lint.sh: passed, 11 skipped (no Docker on this host). caddy validate and make validate were not run locally; CI's pinned Caddy checks the file.

  • Not yet deployed. After deploy: curl -sI https://wall.matrix.elysium/wall.js should show Cache-Control: no-cache.

  • make validate passes

  • Deployed to the lab and confirmed working

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

heimdall's kiosk kept the old wall.js through a Chromium restart after the
wall update deployed: Caddy sent no caching header, so Chromium reused its
copy on a freshness it guessed from Last-Modified, and asked for routes
that no longer exist. no-cache makes each load revalidate (a 304 when
nothing changed), so the page's six-hourly reload picks up a change merged
to main, as wall.js intends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 23:53
@Gerrrt
Gerrrt enabled auto-merge (squash) November 24, 2026 23:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are identified for the dashboard’s static-file cache revalidation change.

No open issues 🎉

What changed in this PR

Updates the wall dashboard’s static-file caching so browser loads revalidate with Caddy, helping the kiosk receive deployed changes rather than reuse stale files.

Changes:

  • Adds Cache-Control: no-cache for the page, JavaScript, and stylesheet; API handles remain unchanged.
  • Documents the six-hour reload behavior and how to trigger an earlier load.
  • Records the stale-cache incident and caching fix in the changelog.
File Description
stacks/​sensitive/​README.md Explains automatic refreshes and restarting Chromium for an earlier load.
stacks/​sensitive/​Caddyfile Adds revalidation headers to the wall dashboard’s static-file handler.
docs/​changelog.md Records the caching fix and the kiosk incident that prompted it.

Review effort: Balanced

@Gerrrt
Gerrrt merged commit c7d18cb into main Nov 25, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the wall-no-cache branch November 25, 2026 00:11
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 this pull request may close these issues.

2 participants