fix(offline): fall back to cached shell on upstream 5xx

Service worker previously only fell back to cache when fetch threw
(network unreachable). A 502/503/504 from the origin returned
successfully with !response.ok, so the bad page was passed through to
the user. Now upstream 5xx is treated like a network failure: try
cached page, then offline-shell redirect for recipe routes, then the
styled offline page. 4xx still passes through unchanged.
This commit is contained in:
2026-05-07 07:52:29 +02:00
parent 9a97e41c28
commit eb2ffac536
2 changed files with 52 additions and 40 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "homepage",
"version": "1.67.3",
"version": "1.67.4",
"private": true,
"type": "module",
"scripts": {