What broke
The container served the new Portal, but Henning still saw the old one
After a rebuild, the Portal container served the new files, but Henning still saw the old interface because a stale copy sat somewhere between the container and the browser. We fixed it by fingerprinting the front-end files at startup, putting the hash in the asset URLs, and showing open tabs an "updated, reload" prompt instead of reloading them automatically.
The short version
What went wrongAfter a rebuild the container served new files, but Henning still saw the old Portal because a stale cached copy sat between the container and the browser.
How we found itHenning pressed Start and saw no change. The container was serving the new files, so the old copy had to come from a cache layer on the way to the browser.
The rule nowGive cacheable files an address that changes with their content, computed by the server. Tell open tabs a new version exists and let the user decide when to reload.
On the evening of 16 November 2026, Henning pressed Start on Portal, the app that runs our app park. Start rebuilds the app and brings it back up. The build went through and the container came up, but the page in his browser looked exactly as it had before.
The container was not the problem. It was serving the new files. The old version came from a copy stored somewhere between the container and the browser. The commit that fixed it says so directly: “a stale copy somewhere between the container and the browser (the container itself served the new files).”
“Somewhere” is the honest word here. Portal has several layers that can keep a copy of a file: the browser’s own cache, a service worker that stores the app shell so Portal still opens when the network is down, the phone when Portal is installed on the home screen, and Cloudflare in front of all of it. The material does not say which layer held the old copy. We did not need to find out, because the fix works no matter which one it was.
Why a rebuild was not enough
Portal’s front end is three files that matter here: an HTML page, a script and a stylesheet. Before the fix, the page loaded the script and stylesheet from the same fixed addresses after every build. To any cache, a request for the stylesheet after a rebuild looked the same as one from the day before. A cache that held an earlier copy had no reason to throw it away.
The HTML page itself was already sent with a header telling caches to check with the server before reusing it. The script and stylesheet are the files whose addresses the fix changes.
The fix: a new address whenever the content changes
Claude changed the server so that it computes a fingerprint of the front end when it starts. It takes a SHA-256 hash over four files (the HTML page, the script, the stylesheet and the service worker) and keeps the first 12 hex characters. The code comment explains why startup is the right moment: these files are baked into the container image and only change when the image is rebuilt, so one calculation per start is enough.
When the server sends the HTML page, it rewrites the addresses of the script and stylesheet to include that fingerprint as a version parameter. A new build with changed files gets new addresses. To every cache on the way, a new address is a new file that it has never seen. According to the code comment, that means neither the browser, the service worker nor Cloudflare can hand back an old copy.
If the server cannot read the files for some reason, it logs a warning and uses the current time as the version. That gives a new version on every start rather than none, so the failure leans towards fetching too often instead of serving stale files.
Telling tabs that are already open
Fingerprinted URLs fix the next page load. They do nothing for a tab that is already open.
So the server also puts the version in two more places. It goes into a meta tag in the HTML page, which records the version the tab loaded with. It also goes into the response of the app list API, which the page already polled every 60 seconds and again whenever the tab becomes visible. When the page sees a version from the server that differs from the one it loaded with, it shows a small bar at the bottom of the screen: “Portalen er oppdatert.” (“Portal has been updated.”) with a “Last inn på nytt” (“Reload”) button.
The changelog says the message appears within a minute, or when you switch back to the tab.
Why the tab does not reload itself
The page could have reloaded automatically as soon as it saw a new version. Claude chose not to, and wrote down why in a code comment: an automatic reload could throw away something the user is in the middle of typing in a dialog. The changelog tells the user the same thing in plain words: the page does not reload by itself, so nothing you are writing gets lost, and you press the button when it suits you.
A reload costs less than it might seem. The terminal sessions run on the server, not in the tab, so they survive it. The only thing at risk was unsaved input in the page, and leaving the decision to the user protects that.
The same problem, three minutes later: the icon
The fix was committed at 22:29. At 22:32 Claude committed a second fix for the same kind of problem in a different place. Portal had just got a new icon.
The cause was the same pattern. The icon images kept their old addresses and had a one-day cache, so, in the words of the commit, “phones had no reason to fetch them again.” The fix was the same idea done by hand: the icon files got new names, the service worker’s cache name went from v6 to v7 so it would drop the old shell, and iPhone got its own 180-pixel icon with no transparent corners.
One address was deliberately left alone. The manifest file keeps its URL, because, according to the commit, Android uses it to identify the installed app.
Some caches cannot be fixed from the server. The changelog says Android swaps the home screen icon by itself the next time Portal is opened, which can take up to a day. An iPhone never replaces an icon that is already on the home screen. The only way there is to remove Portal from the home screen and add it again.
What we take from it
Checking that the container serves the new files does not prove the user sees them. Between them sit at least a service worker, a browser cache, a phone and a CDN, and each one is allowed to answer with what it already has. The symptom, “ran Start, see no change”, is the one the code comment names as the reason for the fix.
The rule: any file that can be cached on the way to the user gets an address that changes when its content changes, computed by the server and not left to someone remembering to bump it. The server also tells open tabs that a new version exists, and the user decides when to reload. Nothing reloads under someone who is typing.