-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Babek Naghiyev
authored and
Babek Naghiyev
committed
Jan 10, 2021
1 parent
b7ed0b9
commit f5c615d
Showing
4 changed files
with
703 additions
and
709 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
importScripts('https://cdn.jsdelivr.net/gh/nagibaba/[email protected]/lib/index.js'); | ||
importScripts( | ||
"https://cdn.jsdelivr.net/gh/nagibaba/[email protected]/lib/index.js", | ||
); | ||
|
||
const sw = new EazySW(); | ||
|
||
sw.CACHENAME = 'default-easy-cache-v1' | ||
sw.CACHENAME = "default-easy-cache-v1"; | ||
|
||
// resources to be precached | ||
// @default ['/'] | ||
sw.precacheResources = ['/']; | ||
sw.precacheResources = ["/"]; | ||
|
||
// Cache requests including "?" | ||
// @default false | ||
sw.cacheGetRequests = false; | ||
|
||
// offline if not cached | ||
// @default '/offline.html' | ||
sw.offlinePage = '/offline.html'; | ||
|
||
sw.offlinePage = "/offline.html"; | ||
|
||
// Returns true if you don't want the URL to be cached | ||
// @return boolean | ||
// @param {url} requested url | ||
// @default false | ||
sw.exclude = (url) => { | ||
return false; | ||
} | ||
}; |
Oops, something went wrong.