feat: don't use random version
This commit is contained in:
parent
8e7bb178f8
commit
975777fffa
1 changed files with 1 additions and 2 deletions
3
index.js
3
index.js
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
import { readFile, writeFile, readdir, unlink } from 'node:fs/promises';
|
import { readFile, writeFile, readdir, unlink } from 'node:fs/promises';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { randomUUID } from "node:crypto";
|
|
||||||
import path from 'pathe';
|
import path from 'pathe';
|
||||||
import { build } from 'esbuild';
|
import { build } from 'esbuild';
|
||||||
|
|
||||||
|
@ -41,7 +40,7 @@ const ASTROSW = '@ayco/astro-sw';
|
||||||
export default function serviceWorker(options) {
|
export default function serviceWorker(options) {
|
||||||
let {
|
let {
|
||||||
assetCachePrefix = ASTROSW,
|
assetCachePrefix = ASTROSW,
|
||||||
assetCacheVersionID = randomUUID(),
|
assetCacheVersionID = '0',
|
||||||
path: serviceWorkerPath = undefined,
|
path: serviceWorkerPath = undefined,
|
||||||
customRoutes = [],
|
customRoutes = [],
|
||||||
excludeRoutes = [],
|
excludeRoutes = [],
|
||||||
|
|
Loading…
Reference in a new issue