mirror of
https://github.com/maciejpedzich/six-degs-of-f1.git
synced 2024-11-27 15:55:47 +01:00
Don't add Cache-Control header for index page
This commit is contained in:
parent
57e823d1ff
commit
98711d228b
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user