Normal view

Today — 9 March 2026Main stream

Caching pages through a service worker

9 March 2026 at 11:21

I'm making a site meant to be used as a PWA and added a service worker to it for offline functionality. I can cache scripts and stylesheets with this method but not the functions.php file (I'm not even sure if doing such a thing is good practice so tips on that are welcome too). I don't even know where to start caching the pages themselves since they are not individual files. I'm confused with how little information I can find on this since the ability to turn a WP site into an app seems to be fully supported. I'm trying to use as few plugins as possible. Any help would be appreciated.

submitted by /u/AmaroBitter
[link] [comments]
❌
❌