This repository was 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
Expand file tree
/
Copy pathsw-config.js
More file actions
75 lines (72 loc) · 2.79 KB
/
sw-config.js
File metadata and controls
75 lines (72 loc) · 2.79 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
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 no-unused-vars: 0 */
/* eslint-env serviceworker */
'use strict';
const config = {
version: '{{ site.data.app.version | default: site.version }}',
fresh: [
/* Root document */
'{{ site.pages | where: "pinned", true | map: "url" | join: "', '" }}',
'{{ site.posts | where: "pinned", true | map: "url" | join: "', '" }}',
'https://apps.kernvalley.us/apps.json',
'https://events.kernvalley.us/events.json',
'/webapp.webmanifest',
'https://krv-events.disqus.com/embed.js',
].map(path => new URL(path, location.origin).href),
stale: [
/* Main resources */
'/css/index.min.css',
'/js/index.min.js',
'/img/icons.svg',
/* Other HTML */
'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',
'https://cdn.kernvalley.us/components/ad/block.html',
'https://cdn.kernvalley.us/components/krv/events.html',
/* CSS */
'https://unpkg.com/leaflet@1.7.1/dist/leaflet.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://cdn.kernvalley.us/components/ad/block.css',
'https://cdn.kernvalley.us/components/krv/events.css',
/* Images & Icons */
'/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/adwaita-icons/actions/mail-send.svg',
'https://cdn.kernvalley.us/img/adwaita-icons/actions/mark-location.svg',
'https://cdn.kernvalley.us/img/octicons/file-media.svg',
'https://cdn.kernvalley.us/img/keep-kern-clean.svg',
'https://cdn.kernvalley.us/img/logos/instagram.svg',
'https://cdn.kernvalley.us/img/markers.svg',
/* Fonts */
'https://cdn.kernvalley.us/fonts/roboto.woff2',
'https://cdn.kernvalley.us/fonts/Libertine.woff',
'https://cdn.kernvalley.us/fonts/ubuntu.woff2',
/* Other */
].map(path => new URL(path, location.origin).href),
allowed: [
/https:\/\/maps\.wikimedia\.org\/osm-intl\/*/,
/https:\/\/news\.kernvalley\.us\/img\/*/,
/https:\/\/secure\.gravatar\.com\/avatar\/*/,
/https:\/\/i\.imgur\.com\/*/,
/https:\/\/*\.githubusercontent\.com\/u\/*/,
/https:\/\/api\.github\.com\/users\/*/,
/\.(jpg|png|svg|webp|gif)$/,
],
allowedFresh: [
/\.(html|css|js|json)$/,
]
};