Skip to content

Commit

Permalink
add cache headers to calendar server island
Browse files Browse the repository at this point in the history
  • Loading branch information
Trombach committed Dec 19, 2024
1 parent 2889906 commit 1df073c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/About/ContributionsCalendar/Calendar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import CalendarGrid from "./CalendarGrid.astro";
import CalendarTile from "./CalendarTile.astro";
const result = await getGithubContributions();
Astro.response.headers.set(
"Cache-Control",
"public, s-maxage=86400, stale-while-revalidate=60",
);
---

{
Expand Down

0 comments on commit 1df073c

Please sign in to comment.