Don't add Cache-Control header for index page

This commit is contained in:
Maciej Pędzich 2024-08-18 22:13:41 +02:00
parent 57e823d1ff
commit 98711d228b
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D

View File

@ -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');
}