Prerequisites: the site must be in Advanced mode, and the cluster on which it is provisioned must support caching.

Our caching solution relies on RFC 7234.

 

Enable caching on your site

In your site configuration, Cache tab, simply enable caching.
Caching will be activated across your entire site.

 

Choose not to cache certain routes

In your site configuration, Access Control tab,
establish a rule on the URI path that you do not want to cache. To allow all IPs, enter the IPs 0.0.0.0/0 and ::/0, and uncheck Cache.

 

 

How to clear the cache of certain routes

In your site configuration, Cache tab,
you can clear the cache of your routes matching the given regular expression.

 

Verify the effectiveness of your cache

In My Logs, Bandwidth graph tab, you can visualize the caching rate, and the saved bandwidth.

HIT means that the cache service responded to the request without soliciting the origin server.

MISS means that the cache service was requested by the request, but that the corresponding object was not found for one of the following reasons:
- Object not cacheable
- Object cacheable but expired or unknown.