diff --git a/board.html b/board.html index 5a49c95..29f3d76 100644 --- a/board.html +++ b/board.html @@ -10,7 +10,7 @@ OwlBoard - Loading - + diff --git a/conf/nginx.conf b/conf/nginx.conf index 4dd1f03..d64739c 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -39,7 +39,7 @@ http { gzip_static on; brotli_static on; error_page 404 /404.html; - expires 3d; + expires 2d; add_header Cache-Control "public, no-transform"; } @@ -57,7 +57,7 @@ http { proxy_cache_key $scheme://$host$uri$is_args$query_string; proxy_ignore_headers Cache-Control; proxy_cache_valid 200 10080m; - expires 3d; + expires 7d; add_header Cache-Control "public, no-transform"; } } diff --git a/index.html b/index.html index 4747d64..ba7a9eb 100644 --- a/index.html +++ b/index.html @@ -60,11 +60,15 @@
+

A cache error means that some users are seeing a faulty layout on departure board pages, + an update to fix this has been made available but it may take a few days for this fix to + be downloaded to your device. +

Customise your quick links on the Settings page.

diff --git a/styles/boards.css b/styles/board.css similarity index 100% rename from styles/boards.css rename to styles/board.css diff --git a/sw.js b/sw.js index de9ef50..9324685 100644 --- a/sw.js +++ b/sw.js @@ -1,10 +1,11 @@ /* Service Worker */ -const appVersion = "1.2.3" +const appVersion = "1.2.4" const cacheName = `owlboard-${appVersion}`; const cacheIDs = [cacheName]; const cacheFiles = [ "/404.html", + "/board.html", "/conn-err.html", "/help.html", "/", @@ -16,7 +17,7 @@ const cacheFiles = [ "/styles/fonts/firamono/firamono-regular.woff2", "/styles/fonts/urwgothic/urwgothic.woff2", "/styles/fonts/urwgothic/urwgothicDemi.woff2", - "/styles/boards.css", + "/styles/board.css", "/styles/find-code.css", "/styles/help.css", "/styles/issue.css", @@ -32,8 +33,8 @@ const cacheFiles = [ "/images/icon.svg", "/images/logo/wide_logo.svg", "/images/logo/mono-logo.svg", - "images/app-icons/any/plain-logo.svg", - "images/app-icons/any/plain-logo-512.png", + "/images/app-icons/any/plain-logo.svg", + "/images/app-icons/any/plain-logo-512.png", "/images/nav/alert_icon.svg", "/images/nav/save.svg", "/images/nav/home_icon.svg",