Skip to content

Commit c935294

Browse files
committed
Ensure Express routes are cached too
1 parent b2eefd2 commit c935294

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/runtime-caching.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
// and https://github.com/GoogleChrome/sw-toolbox/blob/6e8242dc328d1f1cfba624269653724b26fa94f1/README.md#toolboxfastest
1010
// for more details on how this handler is defined and what the toolbox.fastest strategy does.
1111
global.toolbox.router.get('/(.*)', global.toolbox.fastest, {
12-
origin: /\.(?:googleapis|gstatic|firebaseio)\.com$/
12+
origin: /\.(?:googleapis|gstatic|firebaseio|appspot)\.com$/
1313
})
1414
global.toolbox.router.get('/(.+)', global.toolbox.fastest, {
1515
origin: 'https://hacker-news.firebaseio.com'
1616
})
1717
global.toolbox.router.get('/(.+)', global.toolbox.fastest, {
1818
origin: 'https://s-usc1c-nss-136.firebaseio.com'
1919
})
20+
global.toolbox.router.get('/*', global.toolbox.fastest);
2021
})(self)
2122

0 commit comments

Comments
 (0)