mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Replace SWR with CacheFirst
This SWR strategy is sometimes too stale, possibly a bug with Workbox
This commit is contained in:
parent
f1822d54af
commit
631730f2f2
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ const apiIntermediateRoute = new RegExpRoute(
|
|||
// - trends/*
|
||||
// - timelines/link
|
||||
/^https?:\/\/[^\/]+\/api\/v\d+\/(trends|timelines\/link)/,
|
||||
new StaleWhileRevalidate({
|
||||
new CacheFirst({
|
||||
cacheName: 'api-intermediate',
|
||||
plugins: [
|
||||
new ExpirationPlugin({
|
||||
|
|
Loading…
Reference in a new issue