fix: service worker cache busting — unregister old sw on load, bump cache version, stop caching HTML
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m53s

- Bump sw.js cache from v2 to v3
- Unregister all old service workers on page load
- Stop caching HTML/navigation (caused stale CSS refs after rebuild)
This commit is contained in:
openhands committed 2026-07-24 13:50:45 +02:00
1 parent b37b6bc2b9
commit c432d4e95d
7 files changed
+37 -38

No files matched your search

+4 -4
View File
@@ -67,7 +67,7 @@ export default async function SettingsPage() {
<div>
<h1
className="text-lg font-black tracking-tight"
style={{ color: "var(--color-text-readable)", fontFamily: "var(--font-pixel)" }}
style={{ color: "var(--color-text-readable)", fontFamily: "var(--font-nunito)" }}
>
{t("accountSettings")}
</h1>
@@ -94,7 +94,7 @@ export default async function SettingsPage() {
}}
>
<Image src="/assets/images/icons/navigation/me.png" alt="" width={18} height={18} unoptimized />
<h2 className="text-sm font-bold text-white" style={{ fontFamily: "var(--font-pixel)" }}>
<h2 className="text-sm font-bold text-white" style={{ fontFamily: "var(--font-nunito)" }}>
{t("publicProfile")}
</h2>
</div>
@@ -144,7 +144,7 @@ export default async function SettingsPage() {
}}
>
<Image src="/assets/images/icons/star.gif" alt="" width={18} height={18} unoptimized />
<h2 className="text-sm font-bold text-white" style={{ fontFamily: "var(--font-pixel)" }}>
<h2 className="text-sm font-bold text-white" style={{ fontFamily: "var(--font-nunito)" }}>
{t("changeMotto")}
</h2>
</div>
@@ -206,7 +206,7 @@ export default async function SettingsPage() {
}}
>
<Image src="/assets/images/icons/navigation/goody.png" alt="" width={18} height={18} unoptimized />
<h2 className="text-sm font-bold text-white" style={{ fontFamily: "var(--font-pixel)" }}>
<h2 className="text-sm font-bold text-white" style={{ fontFamily: "var(--font-nunito)" }}>
{t("securityTitle")}
</h2>
</div>