파생 이미지 캐시 재검증 적용
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user