1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2023-03-03 13:31:32 -03:00
parent 5564c25e7f
commit 60f735ba62
2 changed files with 4 additions and 5 deletions

4
sw.js
View file

@ -7,7 +7,7 @@ workbox.setConfig({
const webSiteRootURL = this.location.href.split('sw.js?')[0];
const FALLBACK_HTML_URL = webSiteRootURL + 'offline';
const CACHE_NAME = 'avideo-cache-ver-3.4';
const CACHE_NAME = 'avideo-cache-ver-3.6';
const staticAssetsCacheName = CACHE_NAME + '-static-assets';
@ -56,7 +56,7 @@ workbox.routing.registerRoute(
request.url.match(/\.map/) ||
request.url.match(/\.woff2/));
},
new workbox.strategies.CacheFirst({
new workbox.strategies.StaleWhileRevalidate({
cacheName: staticAssetsCacheName,
plugins: [
new workbox.cacheableResponse.CacheableResponsePlugin({