From b1ddd57e119372b054d0effc277e8037ac14a79c Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 8 Dec 2022 14:02:48 +0100 Subject: [PATCH] only caching monkeytype.com requests --- frontend/webpack/config.prod.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/webpack/config.prod.js b/frontend/webpack/config.prod.js index 44e1d4223..3d63a6c00 100644 --- a/frontend/webpack/config.prod.js +++ b/frontend/webpack/config.prod.js @@ -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: {}, }, // {