mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +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/custom_emojis
|
||||||
// - /api/v1/preferences
|
// - /api/v1/preferences
|
||||||
// - /api/v1/lists/:id
|
// - /api/v1/lists/:id
|
||||||
|
// - /api/v1/announcements
|
||||||
const apiExtendedRoute = new RegExpRoute(
|
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({
|
new StaleWhileRevalidate({
|
||||||
cacheName: 'api-extended',
|
cacheName: 'api-extended',
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
Loading…
Reference in a new issue