fix: rotate PWA cache and restrict runtime caching
This commit is contained in:
@@ -135,6 +135,8 @@ test("site includes core guides and production configuration", () => {
|
||||
expect(config).toContain(
|
||||
'"style-src": ["\'self\'", "\'unsafe-inline\'", "https://fonts.googleapis.com"]',
|
||||
);
|
||||
expect(config).toContain('cacheName: "wrnexus-pwa-v2"');
|
||||
expect(config).toContain('pattern: "^https://wrnexusjs\\\\.dev/"');
|
||||
});
|
||||
|
||||
test("language reference covers directives, events, loops, and conditionals", () => {
|
||||
|
||||
@@ -15,6 +15,14 @@ const config: AppConfig = {
|
||||
pwa: {
|
||||
name: "WRNexusJS Documentation",
|
||||
shortName: "WRNexusJS Docs",
|
||||
cacheName: "wrnexus-pwa-v2",
|
||||
runtimeCaching: [
|
||||
{
|
||||
pattern: "^https://wrnexusjs\\.dev/",
|
||||
strategy: "network-first",
|
||||
methods: ["GET"],
|
||||
},
|
||||
],
|
||||
display: "standalone",
|
||||
themeColor: "#6366f1",
|
||||
backgroundColor: "#0f172a",
|
||||
|
||||
Reference in New Issue
Block a user