This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
generated from shgysk8zer0/static-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sw-config.js
38 lines (38 loc) · 1.48 KB
/
sw-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* eslint no-unused-vars: 0 */
/* eslint-env serviceworker */
const config = {
version: '1.1.0',
fresh: [
'/',
'https://baconipsum.com/api/?paras=8&format=json&type=all-meat',
].map(url => new URL(url, location.origin).href),
stale: [
'/js/index.min.js',
'/css/index.min.css',
'/img/icons.svg',
'/img/neon.svg',
'https://cdn.kernvalley.us/components/toast-message.html',
'https://cdn.kernvalley.us/components/toast-message.css',
'https://cdn.kernvalley.us/components/github/user.html',
'https://cdn.kernvalley.us/components/github/user.css',
'https://cdn.kernvalley.us/components/pwa/prompt.html',
'https://cdn.kernvalley.us/components/pwa/prompt.css',
/* Social Icons for Web Share API shim */
'https://cdn.kernvalley.us/img/octicons/mail.svg',
'https://cdn.kernvalley.us/img/logos/facebook.svg',
'https://cdn.kernvalley.us/img/logos/twitter.svg',
'https://cdn.kernvalley.us/img/logos/google-plus.svg',
'https://cdn.kernvalley.us/img/logos/linkedin.svg',
'https://cdn.kernvalley.us/img/logos/reddit.svg',
'https://cdn.kernvalley.us/img/logos/gmail.svg',
'https://cdn.kernvalley.us/img/adwaita-icons/actions/mail-send.svg',
'https://cdn.kernvalley.us/img/logos/instagram.svg',
'https://cdn.kernvalley.us/fonts/roboto.woff2',
].map(path => new URL(path, location.origin).href),
allowed: [
/https:\/\/secure\.gravatar\.com\/avatar\/*/,
/https:\/\/i\.imgur\.com\/*/,
/https:\/\/api\.github\.com\/users\/*/,
/https:\/\/*\.githubusercontent.com\/u\/*/,
]
};