mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-23 09:45:46 +03:00
Test remove /instance and /preferences from SW cache
This commit is contained in:
parent
51ac7611d4
commit
ac9b43cacc
1 changed files with 1 additions and 3 deletions
|
@ -75,13 +75,11 @@ const iconsRoute = new Route(
|
|||
registerRoute(iconsRoute);
|
||||
|
||||
// 1-day cache for
|
||||
// - /api/v1/instance
|
||||
// - /api/v1/custom_emojis
|
||||
// - /api/v1/preferences
|
||||
// - /api/v1/lists/:id
|
||||
// - /api/v1/announcements
|
||||
const apiExtendedRoute = new RegExpRoute(
|
||||
/^https?:\/\/[^\/]+\/api\/v\d+\/(instance|custom_emojis|preferences|lists\/\d+|announcements)$/,
|
||||
/^https?:\/\/[^\/]+\/api\/v\d+\/(custom_emojis|lists\/\d+|announcements)$/,
|
||||
new StaleWhileRevalidate({
|
||||
cacheName: 'api-extended',
|
||||
plugins: [
|
||||
|
|
Loading…
Reference in a new issue