Skip to content

Commit 9d90b3e

Browse files
authored
Merge pull request #508 from julianpoy/fix-api-cache
Fix API cache
2 parents 69cf27f + ec8ff6d commit 9d90b3e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Frontend/src/app/pages/info-components/release-notes/release-notes.page.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020

2121
<br />
2222

23+
<b>v2.4.8</b> - May 30, 2020<br />
24+
- Fixed a bug preventing app from caching items for offline use. Offline mode now works once again!<br />
25+
26+
<br />
27+
2328
<b>v2.4.7</b> - May 23, 2020<br />
2429
- Fix several bugs related to multipart ingredient grouping such as: "1 cup plus 1 tablespoon flour" in the shopping list page<br />
2530
- Fix a bug where ingredient grouping would print "undefined"<br />

Frontend/src/service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ workbox.routing.registerRoute(
4040
// Limit the maxiumum age so that requests aren't too stale.
4141
const MAX_OFFLINE_API_AGE = 30; // Days
4242
workbox.routing.registerRoute(
43-
new RegExp('/api/'),
43+
new RegExp('api\\.recipesage\\.com'),
4444
workbox.strategies.networkFirst({
4545
cacheName: 'api-cache',
4646
plugins: [

0 commit comments

Comments
 (0)