Manually generate cache for service worker
-
Dear Goossens
Many thanks for this extremely helpful plugin.
Just wondered if it’s possible to have the ability to generate all the static autoptimize_hash.css/js files manually in bulk, and not wait until a page gets actually hit.
We recently implemented a service worker using GoogleChromeLabs’ pwa-wp plugin, and turns out it could only precache an asset when first activated on a page if the assets for the pages to be precached already exist in some directory:
workbox.routing.registerRoute(/wp-content\/cache\/autoptimize\/.+/, workbox.strategies.cacheFirst());
So it seems like a capability to manually generate css/js cache is needed for a service worker to work with Autoptimize.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Manually generate cache for service worker’ is closed to new replies.