How Is an Asset's TTL Calculated?

The amount of time that an asset will be cached on our edge servers is determined by the response headersThis type of header describes the HTTP response provided by a server. Among their many uses, certain response headers may be used to define the cache policy for the requested content. returned by the origin server when a client requests it. By default, our CDN honors the following response headers:

Response Header Description

Cache-Control: private

Prevents our edge servers from caching the response.

Cache-Control: no-store

Prevents our edge servers from caching the response.

Cache-Control: no-cache

Prevents our edge servers or the client from caching the response.

Pragma: no-cache

Prevents our edge servers or the client from caching the response.

Cache-Control: s-maxage

Determines the requested content's TTL on our edge serversThe length of time that the requested content will be cached on our network .

This response header is ignored if the response contains any of the above response headers.

Cache-Control: max-age

This response header is ignored if the response contains any of the above response headers.

Determines the requested content's TTL on the user agent and our edge servers.

By default, caching is disabled on the CAN platform.

Expires

Defines an expiration date for the requested content's TTL. The requested content will be considered stale after the specified date/time.

If this directive has been assigned an invalid value, including zero, then it will be ignored for the request in question.

This response header is ignored if the response contains any of the above response headers.

Key information:

More Information