简体   繁体   中英

How to add Cache headers to Cloudfront?

I'm using cloudfront with no special settings. when I run webpagetest, it gives me an "F" for static content. Is there any way to get cloudfront to put out the correct cache headers?

Here are my results from a page that has cloudfront. I'm not sure this is still live

http://www.webpagetest.org/result/150207_29_PAF/1/details/

You need to add these headers (max-age or expires) on your origin. It is the origin that decides how long objects should stay in cache

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM