Creating cache rules

You can create cache rules on mlytics and it will apply to all the CDNs you have installed and activated for your domain. You do not have to create separate rules for each CDN. There are two types of cache rules you can create:

  • Cache rules: tells the system the path/resource to cache
  • No-cache rules: the opposite of cache rules, tells the system the path/resource NOT TO cache

Cache rules

Navigate to 'Multi CDN' > 'Cache control' and click 'Add cache rules'.

You can then customize the cache rule:

  • Directory: a specific path without the file and file name. The URL must have a slash ('/') in the beginning and the end. e.g. /urlpath/
  • File extension: a specific file type. A period ('.') must be included in front of the file type. e.g. .jpg
  • Advanced (Enterprise plan only): you can include wildcards (asterisks) in your path matches. The rule must include at lease one asterisk. e.g. /*/file.jpg
  • Expiry: when this cache rule will expire

No-cache rules

Navigate to 'Multi CDN' > 'Cache control', select 'No-cache rules' tab and click 'Add no-cache rules'.

You can then customize the no-cache rule:

  • Directory: a specific path without the file and file name. The URL must have a slash ('/') in the beginning and the end. e.g. /urlpath/
  • File extension: a specific file type. A period ('.') must be included in front of the file type. e.g. .jpg