Wildcard Invalidation Rules

Wildcard invalidation is an effective tool that allows you to remove certain folders or all the CSS files from the cache. You can purge all files in a folder, all files and folders that start with certain characters and all files of a certain format (e.g. PNG) in a folder. You can launch the invalidation process multiple times for a rule you specify. Wildcard invalidation is available only for HTTP Pull and HTTP Push resources and you can set up to five wildcard invalidation rules for a resource.

Users need to have either 'Update any CDN resource' or 'Update own CDN resources' permission to access the Wildcard Invalidations page.

On this page:

View Wildcard Invalidations



To view wildcard invalidation rules:

  1. Go to the Control Panel > CDN > Resources menu.
  2. Click the required resource label.
  3. On the page that appears, click the Wildcard Invalidations tab.
  4. You will see the list of all Wildcard invalidation rules with the following information:
    • Path - the URL path to the cached files that are to be invalidated
    • Last Invalidation - the time when the last invalidation occurred


Create Wildcard Invalidation Rules



To add a wildcard invalidation rule:

  1. Go to the Control Panel > CDN > Resources menu.
  2. Click the required resource label.
  3. On the page that appears, click the Wildcard Invalidations tab.
  4. Click the "+" button.
  5. In the input field, specify the path to the cached files that are to be invalidated. You may indicate only one path per line. You can set up to five invalidation rules per resource.

    • if you set, for example, /abc/* - all files in the /abc/ folder will be invalidated
    • if you set, for example, /abc* - all files and folders the label of which start with abc will be invalidated
    • if you set, for example, /img/*.png - all PNG files in the img folder will be invalidated
  6. Click the + button to add the rule. Once you add the rule, the files for which you have indicated the path in this rule, will be invalidated.


Invalidate Files Again


You can launch the invalidation process multiple times for a rule you have added. To invalidate again the files for which rules have been set:

  1. Go to the Control Panel > CDN > Resources menu.
  2. Click the required resource link.
  3. On the page that appears, click the Wildcard Invalidations tab.
  4. Click the button. Once you click this button, the files for which you have indicated the path in this rule, will be invalidated.


Delete Wildcard Invalidation Rules



To delete wildcard invalidation rules:

  1. Go to the Control Panel > CDN > Resources menu.
  2. Click the required resource link.
  3. On the page that appears, click the Wildcard Invalidations tab.
  4. Click the Delete button.