From 2cd235a0697a6b96ec582c8fdc8e5be746807ef2 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 9 Feb 2023 23:59:27 +0800 Subject: [PATCH] Better comments --- public/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({