mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-01 15:00:36 +01:00
fix: glob and cache
This commit is contained in:
1 parent
4de0fc5ec1
commit
0929825555
1 file changed
+14
-1
@@ -87,7 +87,20 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
AstroPWA({ manifest: false, devOptions: { enabled: true } }),
|
AstroPWA({
|
||||||
|
manifest: false,
|
||||||
|
devOptions: { enabled: true },
|
||||||
|
workbox: {
|
||||||
|
globPatterns: ["**/*.{html,css,js,png,webp,svg,xml,json}"],
|
||||||
|
runtimeCaching: [
|
||||||
|
{
|
||||||
|
urlPattern: ({ url }) =>
|
||||||
|
url.href.startsWith(import.meta.env.PUBLIC_ASSET_BASE),
|
||||||
|
handler: "NetworkFirst",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
|
||||||
react(),
|
react(),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in new issue
Block a user