Browsers kept serving a stale app bundle after every deploy

Fixkamo-meet
Ya
5 Agosti 2026, 02:13 UTC
Mwandishi
Kamo
Ahadi ya
df08119

index.html shipped a hardcoded `libs/app.bundle.min.js?v=139` that no build ever changed, the bundle filenames are stable, and nginx sent no Cache-Control at all. So after a deploy a browser could keep running the previous JS indefinitely — which makes any frontend fix look like it did not work. Stamp the ?v= query at image build time with a hash of the bundles themselves, so it changes exactly when they do. Then /libs/ can be cached hard (immutable) while index.html is always revalidated.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei