简体   繁体   中英

Why is Akamai cache-control max-age decreasing value?

I am using Akamai and the cache-control headers max-age value is decreasing on each subsequent request when using honor origin cache control + expires . On other CDNs I don't experience the same behaviour.

On the app I have Cache-Control: max-age=2592000, public and the max-age value in the response headers seems to be calculated as the time Akamai fetched the asset from the server minus the max-age specified in the app.

Why is this happening? How can I have Akamai respond with max-age=2592000, public ?

You can easily configure this via "Downstream cacheability" behaviour: » "Pass cacheability headers from origin" » This tunnels the Cache-Control and/or Expires header settings from the origin to the downstream.

从源传递可缓存性标头

Alternatively, for resources with TTL defined at the Edge you can set this to "Full edge TTL (max-age)".

全边缘TTL

Thanks to @TimVereeke.

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