diff --git a/public/sw.js b/public/sw.js index 17ded602..46fa48e8 100644 --- a/public/sw.js +++ b/public/sw.js @@ -33,7 +33,7 @@ const imageRoute = new Route( ); registerRoute(imageRoute); -// Cache /instance because masto.js has to keep calling it while initializing +// 1-day cache for /api/v1/instance and /api/v1/custom_emojis const apiExtendedRoute = new RegExpRoute( /^https?:\/\/[^\/]+\/api\/v\d+\/(instance|custom_emojis)/, new StaleWhileRevalidate({