aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2023-09-15 14:12:31 -0500
committerMatt Strapp <matt@mattstrapp.net>2023-09-15 14:18:05 -0500
commitaf6497fc6ad1d538510b4824c35b469beadaba14 (patch)
treeb1363a65e358260e956f84d255151527ab6591b7
parentHere goes nothing! (diff)
downloadtrinkets-af6497fc6ad1d538510b4824c35b469beadaba14.tar
trinkets-af6497fc6ad1d538510b4824c35b469beadaba14.tar.gz
trinkets-af6497fc6ad1d538510b4824c35b469beadaba14.tar.bz2
trinkets-af6497fc6ad1d538510b4824c35b469beadaba14.tar.lz
trinkets-af6497fc6ad1d538510b4824c35b469beadaba14.tar.xz
trinkets-af6497fc6ad1d538510b4824c35b469beadaba14.tar.zst
trinkets-af6497fc6ad1d538510b4824c35b469beadaba14.zip
Don't cache the server files!!!
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
-rw-r--r--app/src/lib/ts/crc32.worker.ts2
-rw-r--r--app/vite.config.ts2
2 files changed, 2 insertions, 2 deletions
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<File>) => {
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,
}
})