From 975777fffa65edf4d6b07e7e4ec4d01ef1e587c4 Mon Sep 17 00:00:00 2001 From: ayoayco Date: Sun, 18 Aug 2024 19:43:54 +0200 Subject: [PATCH] feat: don't use random version --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 598828e..9e8c7d2 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,6 @@ import { readFile, writeFile, readdir, unlink } from 'node:fs/promises'; import { fileURLToPath } from 'node:url'; -import { randomUUID } from "node:crypto"; import path from 'pathe'; import { build } from 'esbuild'; @@ -41,7 +40,7 @@ const ASTROSW = '@ayco/astro-sw'; export default function serviceWorker(options) { let { assetCachePrefix = ASTROSW, - assetCacheVersionID = randomUUID(), + assetCacheVersionID = '0', path: serviceWorkerPath = undefined, customRoutes = [], excludeRoutes = [],