mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #402] [Issue]: Workbox non-precached-url error for index.html in sw.js #167
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#167
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cha1latte on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/402
Summary
The service worker logs a
non-precached-urlWorkbox error forindex.htmlon every page load.sw.jscallscreateHandlerBoundToURL("index.html"), butindex.htmlis excluded from the precache manifest by the Vite config'sglobPatterns.Expected behavior
No Workbox errors in the console on page load. The navigation handler should bind to a URL that is actually present in the precache, or use a runtime strategy that doesn't require precaching.
Actual behavior
Browser console shows:
from
sw.json page load.The handler in
sw.jscallscreateHandlerBoundToURL("index.html"), butglobPatternsinpackages/client/vite.config.tsis["**/*.{js,css,png,svg,ico,woff2}"]— html is excluded, so the handler has nothing to bind to. Console noise only; no functional impact has been observed.Steps to reproduce
http://localhost:7860in a Chromium-based browser.Environment
8325c75)Platform-independent — the bug is in the built service worker / Vite config.
Logs, screenshots, or video
(emitted from
sw.js)Additional context
Fix options:
htmltoglobPatternsinpackages/client/vite.config.tssoindex.htmlis included in the precache, orsw.jswith aNetworkFirst(orStaleWhileRevalidate) route for navigations, which doesn't require the URL to be precached.Surfaced while diagnosing #401 (the v1.5.7 privileged-gate 403). Filed separately because the two are unrelated.
Template check
@SpicyMarinara commented on GitHub (May 4, 2026):
Addressed in a fix.