I installed PWA on my Hugo website. And offline mode is only works for page that visited (cached) before. Is there a way to make offline mode works to whole page, even without visiting page by page before?
I'm a developer (no backend / frontend / fullstack foo, just a developer) working with JS, Java and various other interesting things.
I'm currently working on https://github.com/nut-tree/nut.js
It’s possible to do pre-caching with ServiceWorkers, so all your pages would be cached before the SW is installed. You can either build your own strategies, or take a look at workbox, which comes with many „common“ caching patterns.
Hey..
I was resonating at the same idea you just mentioned..
I think it is possible through service workers..as it sits between the client and the server .
We can fetch things(not yet visited) in sw and therefore be able to cache it.
Hope it helps.
I am still working on a PWA.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I installed PWA on my Hugo website. And offline mode is only works for page that visited (cached) before. Is there a way to make offline mode works to whole page, even without visiting page by page before?
It’s possible to do pre-caching with ServiceWorkers, so all your pages would be cached before the SW is installed. You can either build your own strategies, or take a look at workbox, which comes with many „common“ caching patterns.
Hey..
I was resonating at the same idea you just mentioned..
I think it is possible through service workers..as it sits between the client and the server .
We can fetch things(not yet visited) in sw and therefore be able to cache it.
Hope it helps.
I am still working on a PWA.