Skip to content

Commit 75488b1

Browse files
committed
Add more offline pages
1 parent 128ee29 commit 75488b1

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

offline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: page
3-
title: "Oops! It Looks Like Your’re Offline"
3+
title: "Oops! It Looks Like You’re Offline"
44
page-class: page--offline
55
meta: "CSS Wizardry’s offline content"
66
permalink: /offline/

sw.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
var cacheName = 'csswizardry:0005';
1+
var cacheName = 'csswizardry:0006';
22
var cacheFiles = [
33
'/',
44
'/about/',
55
'/services/',
66
'/contact/',
7+
'/offline/'
8+
'/workshops/',
9+
'/speaking/',
10+
'/consultancy/',
11+
'/code-reviews/',
712
'/case-studies/',
813
'/case-studies/raspberry-pi-code-club-workshop/',
914
'/case-studies/ocado-workshop/',
@@ -18,7 +23,6 @@ var cacheFiles = [
1823
'/2015/08/bemit-taking-the-bem-naming-convention-a-step-further/',
1924
'/2016/02/mixins-better-for-performance/',
2025
'/2016/10/pragmatic-practical-progressive-theming-with-custom-properties/',
21-
'/offline/'
2226
];
2327

2428

@@ -62,7 +66,7 @@ self.addEventListener('fetch', function(event) {
6266
// Empty out any caches that don’t match the ones listed.
6367
self.addEventListener('activate', function(event) {
6468

65-
var cacheWhitelist = ['csswizardry:0005'];
69+
var cacheWhitelist = ['csswizardry:0006'];
6670

6771
event.waitUntil(
6872
caches.keys().then(function(cacheNames) {

0 commit comments

Comments
 (0)