mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Cache announcements
This commit is contained in:
parent
9a10bc0fec
commit
904e82872e
1 changed files with 2 additions and 1 deletions
|
@ -59,8 +59,9 @@ registerRoute(iconsRoute);
|
|||
// - /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+)$/,
|
||||
/^https?:\/\/[^\/]+\/api\/v\d+\/(instance|custom_emojis|preferences|lists\/\d+|announcements)$/,
|
||||
new StaleWhileRevalidate({
|
||||
cacheName: 'api-extended',
|
||||
plugins: [
|
||||
|
|
Loading…
Reference in a new issue