generated from shgysk8zer0/static-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsw-config.js
More file actions
29 lines (28 loc) · 826 Bytes
/
sw-config.js
File metadata and controls
29 lines (28 loc) · 826 Bytes
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
/* eslint no-unused-vars: 0 */
const config = {
version: '2.1.0',
fresh: [
'https://apps.kernvalley.us/apps.json',
].map(url => new URL(url, location.origin).href),
stale: [
'/',
'/js/index.min.js',
'/css/index.min.css',
'/img/icons.svg',
'/manifest.json',
'https://unpkg.com/@shgysk8zer0/polyfills@0.2.0/all.min.js',
'https://unpkg.com/@shgysk8zer0/kazoo@0.2.0/harden.js',
'https://cdn.kernvalley.us/img/branding/kernvalley.us.svg',
'https://cdn.kernvalley.us/img/keep-kern-clean.svg',
'https://cdn.kernvalley.us/img/logos/instagram.svg',
].map(path => new URL(path, location.origin).href),
allowed: [
'https://i.imgur.com/',
/https:\/\/\\w+\.githubusercontent\.com\/u\//,
/\.(jpg|png|gif|webp|svg)$/,
],
allowedFresh: [
'https://api.github.com/users',
/\.(json|html|css|js)$/,
]
};