Workbox migration from 5.1.3 to 6.0.2 (precache installation time increases...
Brought to you by:
tomkozak
Originally created by: BezMaster
Library Affected:
workbox-sw, workbox-build, etc.
Browser & Platform:
Version 81.0.4044.92 (Build officiel) (64 bits) & Linux Ubuntu 18.04.4 LTS
Issue or Feature Request Description:
Migration from Workbox 5.1.3 to 6.0.2
I have an issue with the new workbox 6.0.2 version.
I call the same functions as before in version 5.1.3 in my sw.js. It works fine.
But the precache installation duration is 5 times longer with 6.0.2. I don't understand why.
Is there a way to have the same precache installation speed than in 5.1.3 ?
Is there a good reason to justify this difference ?
You can find a sample of my sw.js just there
import { cleanupOutdatedCaches, precacheAndRoute} from 'workbox-precaching';
import { clientsClaim, setCacheNameDetails, skipWaiting } from 'workbox-core';
const precacheList = self.__WB_MANIFEST || [];
setCacheNameDetails({
prefix: 'test',
suffix: 'v1',
precache: 'precache',
runtime: 'runtime'
});
clientsClaim();
skipWaiting();
precacheAndRoute(precacheList)
cleanupOutdatedCaches();
Thanks a lot
Ticket changed by: jeffposnick
Originally posted by: jeffposnick
What you describe sounds intentional, due to this change:
Related
Tickets:
#2528Originally posted by: BezMaster
@jeffposnick Thanks a lot for your explanation ;)