Volleyball Elite Academy development update
|
Volleyball Elite Academy
Fix Service Worker Scheme Guard
|
Fix Service Worker Scheme GuardVolleyball Elite Academy — Development Update • May 9, 2026
Fix Service Worker Scheme Guard
What & Why The service worker's fetch event handler intercepts all GET requests, including those originating from browser extensions ( URLs). When it tries to cache these responses, the Cache API throws a because only and schemes are supported. This produces noisy console errors for every user running a browser extension. A secondary symptom is returning a 503 because it isn't in the cache and the service worker returns its error fallback.
Done looks like
- No scheme errors appear in the browser console
- no longer returns 503
- The service worker still caches normal / requests as before
Out of scope
- Changes to caching strategy or cache versioning
- Push notification or offline behaviour changes
Steps 1. Add a URL scheme guard — At the very top of the event handler (before any other logic), add a check that returns early if the request URL does not start with . This prevents the handler from touching , , or any other unsupported scheme. 2. Sync the dist copy — Apply the same change to so the built output matches.
Relevant files - -
|
Volleyball Elite Academy Reply to this email — we read every reply. You received this because you have an account with Volleyball Elite Academy. elitevolleyball.training |
|
No comments:
Post a Comment