Fixing universe save/load logic

This commit is contained in:
2023-11-14 14:35:18 +01:00
parent 31f5afe64b
commit 04d4450555
9 changed files with 90 additions and 108 deletions

View File

@ -28,9 +28,11 @@ const vitePWAconfiguration = {
enabled: true,
},
workbox: {
sourcemap: true,
sourcemap: false,
cleanupOutdatedCaches: true,
globPatterns: ["**/*.{js,css,html,gif,png,json,woff,json,ogg,wav,mp3,ico,png,svg}"],
globPatterns: [
"**/*.{js,css,html,gif,png,json,woff,json,ogg,wav,mp3,ico,png,svg}",
],
// Thanks Froos :)
runtimeCaching: [
{
@ -39,9 +41,9 @@ const vitePWAconfiguration = {
/^https:\/\/raw\.githubusercontent\.com\/.*/i,
/^https:\/\/shabda\.ndre\.gr\/.*/i,
].some((regex) => regex.test(url)),
handler: 'CacheFirst',
handler: "CacheFirst",
options: {
cacheName: 'external-samples',
cacheName: "external-samples",
expiration: {
maxEntries: 5000,
maxAgeSeconds: 60 * 60 * 24 * 30, // <== 14 days