Fixing universe save/load logic
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user