Skip to content

Commit 3f35153

Browse files
Update cache
1 parent a2d6484 commit 3f35153

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

public/serviceWorker.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const downloadFirstRunAssets = async () => {
2525
'/build/tailwind.css',
2626
'/build/main.js',
2727
'/data/huts.json',
28+
'/data/places.json',
2829
'/icons/marker.svg',
2930
'/icons/location-indicator.svg'
3031
]);
@@ -106,9 +107,6 @@ const rules = {
106107
// First party scripts should be fetched from the network, if possible.
107108
[self.registration.scope]: networkThenCache,
108109

109-
// Cache doc huts.
110-
"https://api.doc.govt.nz/v2/huts?coordinates=wgs84": cacheThenNetwork,
111-
112110
// Fetch latest mountain data, if we have a network connection.
113111
"https://raw.githubusercontent.com/fallaciousreasoning/nz-mountains/main/mountains.json": networkThenCache,
114112
}

0 commit comments

Comments
 (0)