mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-24 14:34:42 +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/*
|
// - trends/*
|
||||||
// - timelines/link
|
// - timelines/link
|
||||||
/^https?:\/\/[^\/]+\/api\/v\d+\/(trends|timelines\/link)/,
|
/^https?:\/\/[^\/]+\/api\/v\d+\/(trends|timelines\/link)/,
|
||||||
new StaleWhileRevalidate({
|
new CacheFirst({
|
||||||
cacheName: 'api-intermediate',
|
cacheName: 'api-intermediate',
|
||||||
plugins: [
|
plugins: [
|
||||||
new ExpirationPlugin({
|
new ExpirationPlugin({
|
||||||
|
|
Loading…
Add table
Reference in a new issue