client: remove cache control
This commit is contained in:
parent
1c68aa9765
commit
d06d0ffea2
1 changed files with 1 additions and 3 deletions
|
@ -29,8 +29,6 @@ export type PostProps = ThemeProps & {
|
||||||
}
|
}
|
||||||
|
|
||||||
const Post = ({ post, theme, changeTheme }: PostProps) => {
|
const Post = ({ post, theme, changeTheme }: PostProps) => {
|
||||||
const router = useRouter();
|
|
||||||
|
|
||||||
const download = async () => {
|
const download = async () => {
|
||||||
const clientZip = require("client-zip")
|
const clientZip = require("client-zip")
|
||||||
|
|
||||||
|
@ -117,7 +115,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||||
const maxAge = 60 * 60 * 24 * 365;
|
const maxAge = 60 * 60 * 24 * 365;
|
||||||
context.res.setHeader(
|
context.res.setHeader(
|
||||||
'Cache-Control',
|
'Cache-Control',
|
||||||
`${json.visibility === "public" ? "public" : "private"}, s-maxage=${maxAge}, max-age=${maxAge}`
|
`${json.visibility === "public" ? "public" : "private"}, s-maxage=${maxAge}`
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
|
|
Loading…
Reference in a new issue