only caching monkeytype.com requests

This commit is contained in:
Miodec 2022-12-08 14:02:48 +01:00
parent 4e9ab796ad
commit b1ddd57e11

View file

@ -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: {},
},
// {