Skip to content

Commit f96b8ef

Browse files
committed
impr: disable sw caching for version file
!nuf
1 parent 13a15c9 commit f96b8ef

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

frontend/vite.config.prod.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ export default {
123123
handler: "NetworkFirst",
124124
options: {},
125125
},
126+
{
127+
urlPattern: (options) => {
128+
//disable caching for version.json
129+
return options.url.pathname === "/version.json";
130+
},
131+
handler: "NetworkOnly",
132+
options: {},
133+
},
126134
],
127135
},
128136
}),

0 commit comments

Comments
 (0)