mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
only caching monkeytype.com requests
This commit is contained in:
parent
4e9ab796ad
commit
b1ddd57e11
|
@ -81,6 +81,7 @@ const PRODUCTION_CONFIG = {
|
|||
skipWaiting: false,
|
||||
//include the generated css and js files
|
||||
maximumFileSizeToCacheInBytes: 11000000,
|
||||
cleanupOutdatedCaches: true,
|
||||
exclude: [
|
||||
// /html\/.*\.html/,
|
||||
// /LICENSE\.txt/,
|
||||
|
@ -118,8 +119,9 @@ const PRODUCTION_CONFIG = {
|
|||
// handler: "CacheFirst",
|
||||
// },
|
||||
{
|
||||
urlPattern: /.+/,
|
||||
urlPattern: /\/\/monkeytype.com.+/,
|
||||
handler: "NetworkFirst",
|
||||
options: {},
|
||||
},
|
||||
|
||||
// {
|
||||
|
|
Loading…
Reference in a new issue