diff --git a/src/utils/docs-cache-headers.ts b/src/utils/docs-cache-headers.ts index e095f4147..e684afdca 100644 --- a/src/utils/docs-cache-headers.ts +++ b/src/utils/docs-cache-headers.ts @@ -2,7 +2,7 @@ import { findLibrary, getBranch } from '~/libraries' import { docsContentNegotiationVaryHeader } from './http' const latestDocsCdnCacheControl = - 'public, max-age=60, stale-while-revalidate=60' + 'public, max-age=3600, stale-while-revalidate=86400' const versionedDocsCdnCacheControl = 'public, max-age=300, stale-while-revalidate=300' diff --git a/src/utils/docs.functions.ts b/src/utils/docs.functions.ts index 73f34fdeb..77b85a33d 100644 --- a/src/utils/docs.functions.ts +++ b/src/utils/docs.functions.ts @@ -435,7 +435,7 @@ export const fetchDocs = createServerFn({ method: 'GET' }) frontMatter.userDescription ?? removeMarkdown(frontMatter.excerpt ?? '') const keywords = extractFrontMatterKeywords(frontMatter.data.keywords) - setDocsCacheHeaders('public, max-age=60, stale-while-revalidate=60') + setDocsCacheHeaders('public, max-age=3600, stale-while-revalidate=86400') return { content: frontMatter.content,