From af6497fc6ad1d538510b4824c35b469beadaba14 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Fri, 15 Sep 2023 14:12:31 -0500 Subject: Don't cache the server files!!! Signed-off-by: Matt Strapp --- app/src/lib/ts/crc32.worker.ts | 2 +- app/vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/src/lib/ts/crc32.worker.ts b/app/src/lib/ts/crc32.worker.ts index 0d04c7c..2edcc4f 100644 --- a/app/src/lib/ts/crc32.worker.ts +++ b/app/src/lib/ts/crc32.worker.ts @@ -3,6 +3,6 @@ import crc32 from 'crc/crc32'; onmessage = async (message: MessageEvent) => { const file = message.data; const buffer = await file.arrayBuffer(); - const crc = crc32(buffer, 517762881); + const crc = crc32(buffer); postMessage(crc); }; diff --git a/app/vite.config.ts b/app/vite.config.ts index 00d8472..59d8f0d 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -33,7 +33,7 @@ export default defineConfig({ }, registerType: 'autoUpdate', workbox: { - globPatterns: ['**/*.{js,css,html,svg}'], + globPatterns: [ 'client/**/*.{js,css,html,svg}' ], cleanupOutdatedCaches: true, } }) -- cgit v1.2.3