From d06d0ffea295aeb5f0ddf9cfd4a2e14ff4a8b6a4 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Mon, 21 Mar 2022 14:54:36 -0700 Subject: [PATCH] client: remove cache control --- client/pages/post/[id].tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/pages/post/[id].tsx b/client/pages/post/[id].tsx index 0289cb00..4a6cf0d9 100644 --- a/client/pages/post/[id].tsx +++ b/client/pages/post/[id].tsx @@ -29,8 +29,6 @@ export type PostProps = ThemeProps & { } const Post = ({ post, theme, changeTheme }: PostProps) => { - const router = useRouter(); - const download = async () => { const clientZip = require("client-zip") @@ -117,7 +115,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => { const maxAge = 60 * 60 * 24 * 365; context.res.setHeader( 'Cache-Control', - `${json.visibility === "public" ? "public" : "private"}, s-maxage=${maxAge}, max-age=${maxAge}` + `${json.visibility === "public" ? "public" : "private"}, s-maxage=${maxAge}` ) return { props: {