mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
update
This commit is contained in:
parent
5564c25e7f
commit
60f735ba62
2 changed files with 4 additions and 5 deletions
4
sw.js
4
sw.js
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue