offlinePage not route offline requests to the specified path
See original GitHub issueI tried with a new build after set up this in nuxt.config.js:
modules: [
[
"@nuxtjs/pwa",
{
manifest: {
start_url: "/",
},
workbox: {
offlinePage: "/offline.html",
},
},
],
],
I put the offline html in the static directory. It is working properly offline, but not redirect to the offline.html when the page is offline. Please help.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:10 (1 by maintainers)
Top Results From Across the Web
nuxt.js - Redirect to offline page if no cache and ...
I've settled for an offline page whenever a route is not cached, ... setCatchHandler(async ({ event }) => { if (event.request.mode ...
Read more >Create an offline fallback page - web.dev
Learn how to create a simple offline experience for your app.
Read more >Goodbye Offline Page
A couple of weeks ago, I took a step back and assessed the situation. Given the fact that we lean heavily into edge...
Read more >Workbox Module
Please note that enabling offlinePage will disable /.* caching ( offline option) and will route all offline requests to the specified path.
Read more >Offline and network connectivity support in Progressive ...
getItem( request.url ) ); // If data exists and this page isn't an offline page (assumes that offline // pages have the word...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same issue here,
offline.html
is getting precached but offline routes are not getting redirected to/offline.html
nuxt.config.js
+1