fix: service worker fn

This commit is contained in:
Azgaar 2024-09-20 15:40:10 +02:00
parent 5904e9e7c6
commit e9113730b9
2 changed files with 2 additions and 2 deletions

2
sw.js
View file

@ -21,7 +21,7 @@ registerRoute(
request.destination === "script" && request.destination === "script" &&
!url.pathname.endsWith("min.js") && !url.pathname.endsWith("min.js") &&
!url.pathname.includes("versioning.js") && !url.pathname.includes("versioning.js") &&
!url.contains("google"), !url.pathname.includes("google"),
new StaleWhileRevalidate({ new StaleWhileRevalidate({
cacheName: "fmg-scripts", cacheName: "fmg-scripts",
plugins: [ plugins: [

View file

@ -12,7 +12,7 @@
* *
* Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2 * Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2
*/ */
const VERSION = "1.104.3"; const VERSION = "1.104.4";
if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function"); if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function");
{ {