diff --git a/pages/attendee/profile.tsx b/pages/attendee/profile.tsx index f3d7931b..67af45ac 100644 --- a/pages/attendee/profile.tsx +++ b/pages/attendee/profile.tsx @@ -2,12 +2,7 @@ import Profile from "@layout/Attendee/Profile"; import { getCourses } from "@lib/api"; -export async function getServerSideProps(context) { - context.res.setHeader( - "Cache-Control", - "public, s-maxage=3600, stale-while-revalidate=3600" - ); - +export async function getServerSideProps() { const courses = await getCourses().then((response) => response.data.concat({ id: "", name: "None" }) ); diff --git a/pages/register/[uuid].js b/pages/register/[uuid].js index 443b6217..1cdd6389 100644 --- a/pages/register/[uuid].js +++ b/pages/register/[uuid].js @@ -18,11 +18,6 @@ import Title from "@layout/moonstone/authentication/Title"; import Text from "@layout/moonstone/authentication/Text"; export async function getServerSideProps(context) { - context.res.setHeader( - "Cache-Control", - "public, s-maxage=3600, stale-while-revalidate=3600" - ); - const courses = await getCourses().then((response) => response.data.concat({ id: "", name: "None" }) ); diff --git a/pages/signup.tsx b/pages/signup.tsx index 69c40005..592db104 100644 --- a/pages/signup.tsx +++ b/pages/signup.tsx @@ -2,12 +2,7 @@ import { getCourses } from "@lib/api"; import SignUp from "@layout/SignUp"; -export async function getServerSideProps(context) { - context.res.setHeader( - "Cache-Control", - "public, s-maxage=3600, stale-while-revalidate=3600" - ); - +export async function getServerSideProps() { const courses = await getCourses().then((response) => response.data.concat({ id: "", name: "None" }) );