This repository was archived by the owner on Jan 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
//This is the "Offline page" service worker
2
2
3
- //Install stage sets up the offline page in the cahche and opens a new cache
3
+ //Install stage sets up the offline page in the cache and opens a new cache
4
4
self . addEventListener ( 'install' , function ( event ) {
5
5
var offlinePage = new Request ( 'offline.html' ) ;
6
6
event . waitUntil (
Original file line number Diff line number Diff line change 1
1
//This is the "Offline copy of pages" service worker
2
2
3
- //Install stage sets up the index page (home page) in the cahche and opens a new cache
3
+ //Install stage sets up the index page (home page) in the cache and opens a new cache
4
4
self . addEventListener ( 'install' , function ( event ) {
5
5
var indexPage = new Request ( 'index.html' ) ;
6
6
event . waitUntil (
Original file line number Diff line number Diff line change 1
1
//This is the service worker with the combined offline experience (Offline page + Offline copy of pages)
2
2
3
- //Install stage sets up the offline page in the cahche and opens a new cache
3
+ //Install stage sets up the offline page in the cache and opens a new cache
4
4
self . addEventListener ( 'install' , function ( event ) {
5
5
event . waitUntil ( preLoad ( ) ) ;
6
6
} ) ;
Original file line number Diff line number Diff line change @@ -59,6 +59,6 @@ function update(request) {
59
59
}
60
60
61
61
function fromServer ( request ) {
62
- //this is the fallback if it is not in the cahche to go to the server and get it
62
+ //this is the fallback if it is not in the cache to go to the server and get it
63
63
return fetch ( request ) . then ( function ( response ) { return response } )
64
64
}
You can’t perform that action at this time.
0 commit comments