CloudFront with long shared cache and short browser cache -


i'm using cloudfront in front of s3 serve images. origin (s3) sets following cache headers: cachecontrol: max-age=86400,s-maxage=31536000. expectation here cloudfront cache image 1 year, , browser cache day. after that, should hit cloudfront again , cached image, , cache "new" item rest of day.

the issue i'm encountering date header cloudfront when cached in cdn. so, after 1 day of being cached in cdn, browser no longer caches images, , hits cloudfront every time. @ point age of item has exceeded max-age value. until cloudfront item invalidated or expired, browser never retrieves item caches.

is possible set such browser caches each subsequent day, cloudfront ttl can set long year?


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -