this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Workbox expiration plugin not working as expected

+21 -18
+21 -18
public/sw.js
··· 96 96 ); 97 97 registerRoute(apiExtendedRoute); 98 98 99 - const apiIntermediateRoute = new RegExpRoute( 100 - // Matches: 101 - // - trends/* 102 - // - timelines/link 103 - /^https?:\/\/[^\/]+\/api\/v\d+\/(trends|timelines\/link)/, 104 - new StaleWhileRevalidate({ 105 - cacheName: 'api-intermediate', 106 - plugins: [ 107 - new ExpirationPlugin({ 108 - maxAgeSeconds: 1 * 60, // 1min 109 - }), 110 - new CacheableResponsePlugin({ 111 - statuses: [0, 200], 112 - }), 113 - ], 114 - }), 115 - ); 116 - registerRoute(apiIntermediateRoute); 99 + // Note: expiration is not working as expected 100 + // https://github.com/GoogleChrome/workbox/issues/3316 101 + // 102 + // const apiIntermediateRoute = new RegExpRoute( 103 + // // Matches: 104 + // // - trends/* 105 + // // - timelines/link 106 + // /^https?:\/\/[^\/]+\/api\/v\d+\/(trends|timelines\/link)/, 107 + // new StaleWhileRevalidate({ 108 + // cacheName: 'api-intermediate', 109 + // plugins: [ 110 + // new ExpirationPlugin({ 111 + // maxAgeSeconds: 1 * 60, // 1min 112 + // }), 113 + // new CacheableResponsePlugin({ 114 + // statuses: [0, 200], 115 + // }), 116 + // ], 117 + // }), 118 + // ); 119 + // registerRoute(apiIntermediateRoute); 117 120 118 121 const apiRoute = new RegExpRoute( 119 122 // Matches: