From 98711d228b81cdcf086d681778e0b50c28560796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Sun, 18 Aug 2024 22:13:41 +0200 Subject: [PATCH] Don't add Cache-Control header for index page --- src/pages/index.astro | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index d658337..05dae7b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -24,9 +24,6 @@ try { if (noEmptyParams && paramsNotEqual) graphProps = await getShortestPaths(source, dest); - - // Cache the page for 2 weeks - Astro.response.headers.set('Cache-Control', 'public, max-age=1209600'); } catch (error) { return Astro.redirect('/error'); }