feat: don't use random version

This commit is contained in:
Ayo Ayco 2024-08-18 19:43:54 +02:00
parent 8e7bb178f8
commit 975777fffa

View file

@ -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 = [],