mafintosh / mafintosh/browser-server
Worker intercepts browser-server bundle (and initial HTML request)
- Dominant language
- JavaScript
- Stars
- 186
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
I noticed when experimenting with no prefix (a "/" prefix) that the worker can intercept the browser-server bundle itself, as well as the initial HTML request. This makes the worker unable to respond (since it's waiting on the script it's trying to load).
I think this could be solved by adding an option to specify certain paths (for example `/bundle.js` and `/index.html`) that the worker should not intercept.
Not needing a prefix would be extremely useful for drop-in lazy loading, since no HTML refactoring would be required.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing how the service worker handles requests when the prefix is "/", focusing on the browser-server bundle and initial HTML request mentioned in the issue. Define the excluded paths and verify that those resources load normally while other requests remain intercepted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100