파생 이미지 캐시 재검증 적용

This commit is contained in:
2026-07-02 10:46:09 +09:00
parent ffd6cbb822
commit 486c8bfe76
12 changed files with 95 additions and 19 deletions

View File

@@ -29,7 +29,7 @@ const regeneratableUploadPattern = /^\/uploads\/posts\/\d{4}\/\d{2}\/thumbs\/[^/
*/
const getUploadCacheControl = (pathname) => {
if (regeneratableUploadPattern.test(pathname)) {
return 'public, max-age=3600, stale-while-revalidate=86400'
return 'public, no-cache'
}
return 'public, max-age=31536000, immutable'