What is s-maxage and how can I configure it?

In case you are not familiar with caching definition, here is what means s-maxage :

s-maxage ('s' means seconds) — Indicates that in shared caches, the maximum age specified by this directive overrides the maximum age specified by either the max-age directive or the Expires header field. The s-maxage directive also implies the semantics of the proxy-revalidate response directive. Browsers ignore s-maxage

 

The CDN cache expiration period is controlled by the s-maxage directive.

Example:

  • an image with s-maxage=2592000 would be cached in the CDN server for a period of 2592000 seconds = 1 month. After that, the CDN will delete the cached image. If the users request the image again, the CDN will get a new, fresh copy of the image and will cache it again for a period of 1 month.

s-maxage can be configured in the Cloudimage Admin panel in menu Image Settings -> tab Caching:

Screenshot_2022-11-03_at_11.02.20.png

 

For additional information regarding the Image Cache we suggest you to read the following articles:

If you have any further questions, do not hesitate to contact our Support team.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.