Deploy website - based on ce204828de710adc7a3783a68abd22ab304718a2
This commit is contained in:
parent
1010b0329c
commit
576cd97d7e
|
@ -26,7 +26,7 @@ function swCustom(params) {
|
||||||
|
|
||||||
// Cache responses from external resources
|
// Cache responses from external resources
|
||||||
(0,workbox_routing__WEBPACK_IMPORTED_MODULE_0__.registerRoute)(context => {
|
(0,workbox_routing__WEBPACK_IMPORTED_MODULE_0__.registerRoute)(context => {
|
||||||
return [/githubusercontent/].some(regex => context.url.href.match(regex));
|
return [/githubusercontent/, /\/awesome-interview\//].some(regex => context.url.href.match(regex));
|
||||||
}, new workbox_strategies__WEBPACK_IMPORTED_MODULE_1__.StaleWhileRevalidate());
|
}, new workbox_strategies__WEBPACK_IMPORTED_MODULE_1__.StaleWhileRevalidate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue