mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-08 14:42:46 +08:00
impr: disable sw caching for version file
!nuf
This commit is contained in:
parent
13a15c94d6
commit
f96b8efdaa
1 changed files with 8 additions and 0 deletions
|
@ -123,6 +123,14 @@ export default {
|
|||
handler: "NetworkFirst",
|
||||
options: {},
|
||||
},
|
||||
{
|
||||
urlPattern: (options) => {
|
||||
//disable caching for version.json
|
||||
return options.url.pathname === "/version.json";
|
||||
},
|
||||
handler: "NetworkOnly",
|
||||
options: {},
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
|
|
Loading…
Add table
Reference in a new issue