CDN Pro supports a content management purge function that allows you to override the cache time. This feature is handy when the content on your web server has changed and you want CDN Pro to update its servers with your changes. For example, if your website has a cache time of one week, but you want your website visitors to see a new update to one of your pages, you can use the purge option to flush the cache and enable your visitors to view the new content.
Content management purge activities are performed from the Content Management page. To display this page, click Content Management in the left pane.
The following figure shows the key elements on the page, and the table following the figure describes them.
|1||To filter purges, type characters in this field and then press the Enter key. All purges that do not contain the typed characters are hidden. Filtering is not case-sensitive. To remove the filter, click the x icon at the right side of the search field.|
|2||Each purge appears on its own row. Clicking an ID shows detailed information about the purge.|
|3||Icon to filter purges by their submission date.|
|4||The button to create purge requests.|
If the content on your origin web server has changed, request a purge to have CDN Pro distribute those changes.
*). The top of the form shows the percentage of the daily purge quota that has been used.
|Target Environment||Select whether the purge will occur in the staging or production environment. Default is staging.|
|Purge Action||Select whether you want the content deleted or invalidated. |
|Purge Type||Select whether you want to purge a file or a directory. Default is file.|
|Add a file to be purged||If Purge Type is set to File, select https:// (default) or http:// from the drop-down list, enter the name of the file to be purged, and then click Add File. Repeat this step for each additional file you want to purge. If you decide not to purge one or more files that you added, click the x icon at the right side of the file name.|
|Add a file purge header||If Purge Type is set to File, specify the name and value of the HTTP request header included in the cache key, and then click Add Header. Repeat this step for each additional request header you want to purge. If you decide not to purge one or more request headers that you added, click the x icon at the right side of the header name.|
|Add a directory to be purged||If Purge Type is set to Directory, select https:// (default) or http:// from the drop-down list, enter the name of the directory to be purged, and then click Add Directory. Note that subdirectories of the directory will also be purged. Repeat this step for each additional directory you want to purge. If you decide not to purge one or more directories that you added, click the x icon at the right side of the directory name. |
Note: CDN Pro also supports purging based on URL prefixes. For more information, see Prefix Purging, below.
Click Start Purge.
Note: When the purge completes, a Purge Again button at the bottom right allows you to repeat a purge.
CDN Pro supports prefix purging. Using this feature, you can purge directories by entering values in the Add a directory to be purged field. The following table shows examples of using prefix purging.
Note: Files can have multiple variations if custom cache keys are used. In addition, a URL such as
/picture.jpg can have many variations stored in the cache due to the Vary header or cache key customization. As a result, performing a folder purge without an asterisk will clear all variations except subdirectories or files. For this reason, folder purges of
/pictures/** result in different behaviors.
|http://test.domain2.com/mydir||Purge a single directory.|
|http://test.domain2.com/mydir/**||Purge all files and subdirectories.|
|http://test.domain2.com/mydir2/*||Purge all files only.|
|http://test.domain2.com/mydir/*.jpg||Purge all *jpg files.|
|http://test.domain2.com/mydir/a*||Purge all files that start with the letter "a".|
|http://test.domain2.com/mydir/a**||Purge all files and subdirectories that start with the letter "a".|
|http://test.domain2.com/mydir/a.jpg||Purge all variations of "a.jpg".|
In the left pane, click Content Management.
A Purge tab on the Content Management page shows details similar to those in the following figure: