简体   繁体   中英

cloudfront cache with CloudFront-Is-Mobile-Viewer header

I am new to Cloudfront and trying to maintain and access Cloudfront cache effectively.

If I whitelist CloudFront-Is-Mobile-Viewer header, Will Cloudfront start maintaining the cache based on each user agent?

or it will just maintain whether the request is from mobile or not ?

Thanks, Manish

Cloudfront will not maintain the cache for each User-Agent.

In fact, Cloudfront discourages to whitelist headers which can have a lot of possible values as it will increase the number of cached copies on the CDN and also increase the number of requests which are sent to the origin.

It will cache the response sent from the origin server based on the Cloudfront-Is-Mobile-Viewer header only. So, for all mobile devices which are detected by Cloudfront-Is-Mobile-Viewer header the same cached content will be delivered to the end users.

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