This repository was archived by the owner on Jul 5, 2023. It is now read-only.
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
40 lines (40 loc) · 1.47 KB
/
sw-config.js
File metadata and controls
40 lines (40 loc) · 1.47 KB
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
39
40
/* eslint no-unused-vars: 0 */
/* eslint-env serviceworker */
const config = {
version: '1.0.4',
fresh: [
'/',
'/webapp.webmanifest',
'https://apps.kernvalley.us/apps.json',
].map(url => new URL(url, location.origin).href),
stale: [
'/js/index.min.js',
'/css/index.min.css',
'/img/favicon.svg',
'/img/icon-16.png',
'/img/apple-touch-icon.png',
'/img/icons.svg',
'https://cdn.kernvalley.us/components/toast-message.html',
'https://cdn.kernvalley.us/components/toast-message.css',
'https://cdn.kernvalley.us/components/notification/html-notification.html',
'https://cdn.kernvalley.us/components/notification/html-notification.css',
'https://cdn.kernvalley.us/components/github/user.html',
'https://cdn.kernvalley.us/components/github/user.css',
'https://cdn.kernvalley.us/components/share-to-button/share-to-button.css',
'https://cdn.kernvalley.us/components/share-to-button/share-to-button.html',
'https://cdn.kernvalley.us/img/adwaita-icons/actions/mail-send.svg',
'https://cdn.kernvalley.us/img/logos/instagram.svg',
'https://cdn.kernvalley.us/img/keep-kern-clean.svg',
'https://cdn.kernvalley.us/img/logos/pwa-badge.svg',
'https://cdn.kernvalley.us/fonts/roboto.woff2',
].map(path => new URL(path, location.origin).href),
allowed: [
/https:\/\/i\.imgur\.com\/*/,
/https:\/\/api\.github\.com\/users\/*/,
/https:\/\/avatars\d\.githubusercontent.com\/u\/*/,
/\.(jpg|png|webp|svg|gif|woff2|woff)$/,
],
allowedFresh: [
/\.(html|css|js|json)$/,
]
};