Allow non-navigation caching

This commit is contained in:
Kevin Kandlbinder 2021-05-19 17:37:50 +02:00
parent de44b2c0a8
commit 26fb1a787e

View file

@ -39,9 +39,9 @@ registerRoute(
// Return false to exempt requests from being fulfilled by index.html.
({ request, url }) => {
// If this isn't a navigation, skip.
if (request.mode !== 'navigate') {
/*if (request.mode !== 'navigate') {
return false;
} // If this is a URL that starts with /_, skip.
}*/ // If this is a URL that starts with /_, skip.
if (url.pathname.startsWith('/_')) {
return false;