From 5e8d9efb7b9d1e8e732ecc91f22f4ea18eddd5db Mon Sep 17 00:00:00 2001 From: Matt Edholm Date: Fri, 15 May 2026 14:37:56 -0400 Subject: [PATCH] fix(pwa): cache-bust icon link tags (?v=20260515-3a) iOS Safari caches the apple-touch-icon per origin and ignores byte-level changes on the same URL. Adding a version query forces a refetch on fresh visits without renaming the source files. Buttressed across all standalone Twig templates and the SPA index plus the manifest icons so Chrome desktop also refetches. Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/index.html | 8 ++++---- frontend/public/manifest.webmanifest | 6 +++--- public/build/index.html | 8 ++++---- public/build/manifest.webmanifest | 6 +++--- templates/base.html.twig | 8 ++++---- templates/help/index.html.twig | 8 ++++---- templates/security/login.html.twig | 8 ++++---- templates/security/register.html.twig | 8 ++++---- templates/setup/configure.html.twig | 8 ++++---- templates/setup/index.html.twig | 8 ++++---- templates/token/approve.html.twig | 8 ++++---- templates/token/approved.html.twig | 8 ++++---- templates/token/decline.html.twig | 8 ++++---- templates/token/declined.html.twig | 8 ++++---- templates/token/invalid.html.twig | 8 ++++---- 15 files changed, 58 insertions(+), 58 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index cc6e951..c07f666 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,11 +5,11 @@ WeVisto - - - + + + - + diff --git a/frontend/public/manifest.webmanifest b/frontend/public/manifest.webmanifest index 48db074..ac6f11f 100644 --- a/frontend/public/manifest.webmanifest +++ b/frontend/public/manifest.webmanifest @@ -11,19 +11,19 @@ "theme_color": "#fdf6ee", "icons": [ { - "src": "/build/icons/icon-192.png", + "src": "/build/icons/icon-192.png?v=20260515-3a", "sizes": "192x192", "type": "image/png", "purpose": "any" }, { - "src": "/build/icons/icon-512.png", + "src": "/build/icons/icon-512.png?v=20260515-3a", "sizes": "512x512", "type": "image/png", "purpose": "any" }, { - "src": "/build/icons/icon-512-maskable.png", + "src": "/build/icons/icon-512-maskable.png?v=20260515-3a", "sizes": "512x512", "type": "image/png", "purpose": "maskable" diff --git a/public/build/index.html b/public/build/index.html index f3068f7..a533f68 100644 --- a/public/build/index.html +++ b/public/build/index.html @@ -5,11 +5,11 @@ WeVisto - - - + + + - + diff --git a/public/build/manifest.webmanifest b/public/build/manifest.webmanifest index 48db074..ac6f11f 100644 --- a/public/build/manifest.webmanifest +++ b/public/build/manifest.webmanifest @@ -11,19 +11,19 @@ "theme_color": "#fdf6ee", "icons": [ { - "src": "/build/icons/icon-192.png", + "src": "/build/icons/icon-192.png?v=20260515-3a", "sizes": "192x192", "type": "image/png", "purpose": "any" }, { - "src": "/build/icons/icon-512.png", + "src": "/build/icons/icon-512.png?v=20260515-3a", "sizes": "512x512", "type": "image/png", "purpose": "any" }, { - "src": "/build/icons/icon-512-maskable.png", + "src": "/build/icons/icon-512-maskable.png?v=20260515-3a", "sizes": "512x512", "type": "image/png", "purpose": "maskable" diff --git a/templates/base.html.twig b/templates/base.html.twig index 2ce9b9a..304bac9 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -3,10 +3,10 @@ {% block title %}Welcome!{% endblock %} - - - - + + + + {% block stylesheets %} {% endblock %} diff --git a/templates/help/index.html.twig b/templates/help/index.html.twig index 31fd04a..101cb86 100644 --- a/templates/help/index.html.twig +++ b/templates/help/index.html.twig @@ -3,10 +3,10 @@ - - - - + + + + Setup help — WeVisto