This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
generated from shgysk8zer0/jekyll-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsw-config.js
75 lines (69 loc) · 2.55 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
layout: null
---
/* eslint-env serviceworker */
/* eslint no-unused-vars: 0 */
const config = {
version: '{{ site.data.app.version | default: site.version }}',
fresh: [
/* Root document, pages, and posts */
'{{ site.pages | where: "pinned", true | map: "url" | join: "', '" }}',
'{{ site.posts | where: "pinned", true | map: "url" | join: "', '" }}',
'/manifest.json',
'https://apps.kernvalley.us/apps.json',
].map(path => new URL(path, location.origin).href),
stale: [
/* JS */
'/js/index.min.js',
'https://cdn.kernvalley.us/components/share-target.js',
/* CSS */
'/css/index.min.css',
'https://cdn.kernvalley.us/components/toast-message.css',
'https://cdn.kernvalley.us/components/leaflet/map.css',
'https://cdn.kernvalley.us/components/share-to-button/share-to-button.css',
'https://cdn.kernvalley.us/components/slide-show/slide-show.css',
'https://cdn.kernvalley.us/components/github/user.css',
'https://cdn.kernvalley.us/components/install/prompt.css',
'https://unpkg.com/[email protected]/dist/leaflet.css',
/* Data and JSON */
'/manifest.json',
/* `customElements`templates */
'https://cdn.kernvalley.us/components/toast-message.html',
'https://cdn.kernvalley.us/components/leaflet/map.html',
'https://cdn.kernvalley.us/components/share-to-button/share-to-button.html',
'https://cdn.kernvalley.us/components/slide-show/slide-show.html',
'https://cdn.kernvalley.us/components/github/user.html',
'https://cdn.kernvalley.us/components/install/prompt.html',
/* Images & Icons */
'/img/icons.svg',
'/img/neon.svg',
'/img/apple-touch-icon.png',
'/img/icon-512.png',
'/img/icon-192.png',
'/img/icon-32.png',
'/img/favicon.svg',
'https://cdn.kernvalley.us/img/keep-kern-clean.svg',
'https://cdn.kernvalley.us/img/logos/play-badge.svg',
'https://cdn.kernvalley.us/img/logos/itunes-badge.svg',
'https://cdn.kernvalley.us/img/logos/windows-badge.svg',
'https://cdn.kernvalley.us/img/logos/instagram.svg',
'https://cdn.kernvalley.us/img/markers.svg',
/* Fonts */
'https://cdn.kernvalley.us/fonts/roboto.woff2',
].map(path => new URL(path, location.origin).href),
allowed: [
'https://maps.wikimedia.org/osm-intl/',
'/https://i.imgur.com/',
'/https://secure.gravatar.com/avatar/',
/https:\/\/*\.githubusercontent\.com\/u\/*/,
/\.(jpg|png|webp|svg|gif)$/,
],
allowedFresh: [
'https://www.google-analytics.com/analytics.js',
'https://www.googletagmanager.com/gtag/js',
'https://baconipsum.com/api/',
'https://api.github.com/users/',
'https://api.openweathermap.org/data/',
/\.(html|css|js|json)$/,
]
};