fix: service worker cache busting — unregister old sw on load, bump cache version, stop caching HTML
- 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:
1 parent
b37b6bc2b9
commit
c432d4e95d
7 files changed
+37
-38
No files matched your search
@@ -125,7 +125,7 @@ export default async function LoginPage() {
|
||||
</div>
|
||||
<h1
|
||||
className="text-xl font-black"
|
||||
style={{ color: "var(--color-text-readable)", fontFamily: "var(--font-pixel)" }}
|
||||
style={{ color: "var(--color-text-readable)", fontFamily: "var(--font-nunito)" }}
|
||||
>
|
||||
{t("welcomeBack")}
|
||||
</h1>
|
||||
@@ -150,7 +150,7 @@ export default async function LoginPage() {
|
||||
}}
|
||||
>
|
||||
<Image src="/assets/images/icons/navigation/goody.png" alt="" width={18} height={18} unoptimized />
|
||||
<h3 className="text-sm font-bold text-white" style={{ fontFamily: "var(--font-pixel)" }}>
|
||||
<h3 className="text-sm font-bold text-white" style={{ fontFamily: "var(--font-nunito)" }}>
|
||||
{th("online", { count: online, hotel: "" }).trim()}
|
||||
</h3>
|
||||
</div>
|
||||
@@ -197,7 +197,7 @@ export default async function LoginPage() {
|
||||
}}
|
||||
>
|
||||
<Image src="/assets/images/icons/friends.png" alt="" width={18} height={18} unoptimized />
|
||||
<h3 className="text-sm font-bold text-white" style={{ fontFamily: "var(--font-pixel)" }}>
|
||||
<h3 className="text-sm font-bold text-white" style={{ fontFamily: "var(--font-nunito)" }}>
|
||||
Newest citizens
|
||||
</h3>
|
||||
</div>
|
||||
@@ -254,7 +254,7 @@ export default async function LoginPage() {
|
||||
}}
|
||||
>
|
||||
<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("title")}
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user