client: remove cache control

This commit is contained in:
Max Leiter 2022-03-21 14:54:36 -07:00
parent 1c68aa9765
commit d06d0ffea2
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA

View file

@ -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: {