Restarting the Browser Didn't Help: A Stale Disk Cache on a Kiosk
New buttons we had deployed never appeared on the kiosk, and restarting the browser service changed nothing. A screenshot of the live display showed the running page was missing several earlier deploys. The web server never sent any cache headers.

Key Architectural Takeaways
- A browser's persistent disk cache survives a full process restart; a restart is not a cache clear.
- Take a screenshot of the actual display before theorising; it showed the problem was every recent deploy, not one feature.
- Static servers should send explicit Cache-Control headers for anything that changes.
The symptom
The voice kiosk runs a Chromium page in a Wayland compositor. We deployed a push-to-talk button and tried it on screen and with its hotkey. Neither worked. The code looked right and the usual response, restarting the kiosk service, changed nothing, even after we confirmed through the service's start timestamp that the browser process really was new.
The turning point
A screenshot of the actual display. The Wayland screenshot tool grim, run as the kiosk's unprivileged user with the right runtime directory and display variables, wrote an image we copied off the machine and looked at. It showed a page missing buttons added several deploys earlier, including a network diagnostics feature from well before push-to-talk existed. So this was not a push-to-talk bug. Every recent change was failing to reach the screen.
Root cause
The kiosk's small Python web server subclassed SimpleHTTPRequestHandler and sent no Cache-Control header at all. Chromium's persistent disk cache (in its cache directory, which survives a full browser restart) kept serving an old cached copy of the main script indefinitely. Each "fresh" browser faithfully served content from its own stale cache.
The fix
The handler now sends Cache-Control: no-store, no-cache, must-revalidate, max-age=0 and Pragma: no-cache on every response. After that, the missing buttons appeared on the next load.
Why we kept finding it hard
Restarting the browser looks like starting from scratch, and process-level evidence agreed with us: new PID, new start time. The cache is state outside the process. Only an observation of the output, the pixels on screen, was independent of our assumptions.
Verification
The live screenshot after the change showed the full current button set, including the earlier diagnostics button that had been missing.
Takeaway
When "I deployed it and nothing changed", look at what the user actually sees. And any server that feeds a long-lived browser needs cache headers that match how often its files change.