mirror of
https://github.com/Unkn0wnCat/data-toolbox-site.git
synced 2025-04-30 18:46:21 +02:00
Allow non-navigation caching
This commit is contained in:
parent
de44b2c0a8
commit
26fb1a787e
1 changed files with 2 additions and 2 deletions
|
@ -39,9 +39,9 @@ registerRoute(
|
||||||
// Return false to exempt requests from being fulfilled by index.html.
|
// Return false to exempt requests from being fulfilled by index.html.
|
||||||
({ request, url }) => {
|
({ request, url }) => {
|
||||||
// If this isn't a navigation, skip.
|
// If this isn't a navigation, skip.
|
||||||
if (request.mode !== 'navigate') {
|
/*if (request.mode !== 'navigate') {
|
||||||
return false;
|
return false;
|
||||||
} // If this is a URL that starts with /_, skip.
|
}*/ // If this is a URL that starts with /_, skip.
|
||||||
|
|
||||||
if (url.pathname.startsWith('/_')) {
|
if (url.pathname.startsWith('/_')) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue