mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 23:16:47 +00:00
♊
This commit is contained in:
@@ -10,6 +10,7 @@ export default async (
|
||||
return res.status(405).send({ error: 'method not allowed' })
|
||||
}
|
||||
|
||||
// cache robots.txt for up to 60 seconds
|
||||
res.setHeader(
|
||||
'Cache-Control',
|
||||
'public, s-maxage=60, max-age=60, stale-while-revalidate=60'
|
||||
|
||||
@@ -14,6 +14,7 @@ export default async (
|
||||
|
||||
const siteMaps = await getSiteMaps()
|
||||
|
||||
// cache sitemap for up to one hour
|
||||
res.setHeader(
|
||||
'Cache-Control',
|
||||
'public, s-maxage=3600, max-age=3600, stale-while-revalidate=3600'
|
||||
|
||||
Reference in New Issue
Block a user