DioxusLabs / DioxusLabs/dioxus
Service worker scope
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
Based on the current [PWA example](https://github.com/DioxusLabs/dioxus/tree/662cf0d90261b8540796225b78913b620ea34a8f/examples/pwa), all static assets, including the JavaScript file containing the service worker code, are currently served from the `/assets` directory. Because of this, the service worker's scope is implicitly restricted to `/assets`, preventing it from controlling or caching requests outside that path. Notably, it cannot cache or intercept requests for the main WebAssembly application. This blocks use cases like full offline support.
Is there a workaround that allows the service worker to be served from `/` directly?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.