Where do I set the cache expiry time?

Where do I set the cache expiry time?

You can set the Cache Expiry Time option on the Services/New Service and Services/Settings pages. Setting cache expiry time in this way applies to all content of the particular CDN service. If you have HTTP Pseudo Streaming option enabled then the Cache Expiry Time option applies also to your video files.

What’s the cache expiration time for Azure CDN?

Cache expiration duration. For global and custom caching rules, you can specify the cache expiration duration in days, hours, minutes, and seconds: For the Override and Set if missing Caching behavior settings, valid cache durations range between 0 seconds and 366 days.

How to control how long content stays in the cache?

In the Name list, choose the name of the object that you want to add a header to. Choose Properties, and then choose Metadata . Choose Add Metadata, and then in the Key menu, choose Cache-Control or Expires.

How long is an index.html file cached?

Therefore, if the index.html file has Cache-Control or Expires HTTP headers, they are honored; otherwise, if these headers are not set, the file is cached for 3 days. Files that are cached before a rule change maintain their origin cache duration setting. To reset their cache durations, you must purge the file.

What happens when the cache expires on a CDN?

Note that when your content expires in the CDN cache then (if requested) it is automatically pulled from your Origin Domain/Origin Storage again and the old CDN cache (if still exists) is replaced with the newly pulled content. You have two options where you can set cache expiry time. Please note that the option 1 overrides the option 2.

How does CloudFront cache content until it expires?

The origin adds an Expires header to the object CloudFront caches the object until the date in the Expires header or for the value of the CloudFront maximum TTL, whichever is sooner. Browsers cache the object until the date in the Expires header.