feat(aio): cache external resources in the ServiceWorker
Cache resources that are necessary for displaying the basic pages when offline.
This commit is contained in:

committed by
Pete Bacon Darwin

parent
a9027a2570
commit
749bcf3d9c
@ -5,7 +5,8 @@
|
||||
|
||||
var SEARCH_TERMS_URL = '/content/docs/app/search-data.json';
|
||||
|
||||
importScripts('https://unpkg.com/lunr@0.7.2');
|
||||
// NOTE: This needs to be kept in sync with `ngsw-manifest.json`.
|
||||
importScripts('https://unpkg.com/lunr@0.7.2/lunr.min.js');
|
||||
|
||||
var index = createIndex();
|
||||
var pages = {};
|
||||
|
Reference in New Issue
Block a user