Commit 9736d24a authored by isstuev's avatar isstuev

remove cache

parent c09b5446
......@@ -4,12 +4,7 @@ export type Props = {
cookies: string;
}
export const getServerSideProps: GetServerSideProps = async({ req, res }): Promise<GetServerSidePropsResult<Props>> => {
res.setHeader(
'Cache-Control',
`public, s-maxage=${ 60 * 60 }, stale-while-revalidate=${ 2 * 60 * 60 }`,
);
export const getServerSideProps: GetServerSideProps = async({ req }): Promise<GetServerSidePropsResult<Props>> => {
return {
props: {
cookies: req.headers.cookie || '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment