Cached content can be purged from:
The purpose of purging content is to force the CDN to request a new version of the content in question from an origin server. This ensures that the latest version of the content in question is delivered to your clients.
Purging does not delete content from the origin server. A file management tool (e.g., SFTP or rsync) may be used to delete content from an origin server.
Cached content may be purged from our network (i.e., edge servers) through the Purge/Load page.
Key information:
Specify a full URL when purging content:
Example:
Purging the following URL purges both the HTTP and HTTPS version of this URL:
A request to purge content is specific to the following criteria:
Directory: A URL must be specified when purging content. This URL identifies the directory where the content to be purged is stored.
Purging is not URL-specific. In other words, it affects all CDN and edge CNAME URLs that point to the same assetA file is the most commonly known example of an asset. Refers to any collection of data that is typically stored as a single unit on a storage unit (e.g., disk drive). An example of an asset that is not physically stored on a disk drive occurs when dynamically generated content is not cached..
This example assumes the following setup:
Edge CNAME | Points To |
---|---|
cdn.example.com |
Customer Origin: myorigin Relative Path: / |
sales.example.com |
Customer Origin: myorigin Relative Path: /sales |
Purging any of the following URLs will purge brochure.pdf:
http://cdn.example.com/sales/brochure.pdf
http://sales.example.com/brochure.pdf
http://can.0001Represents your customer account number..transactcdn.com/800001Represents your customer account number./myorigin/sales/brochure.pdf
Region: Purging by region is an advanced option that should only be used to address specialized cache management needs. It allows the selection of one or more regions when purging content. The asset in question will only be purged from the selected region(s).
By default, purging is applied to the entire network (i.e., all regions).
An assetA file is the most commonly known example of an asset. Refers to any collection of data that is typically stored as a single unit on a storage unit (e.g., disk drive). An example of an asset that is not physically stored on a disk drive occurs when dynamically generated content is not cached. only needs to be purged a single time per protocolHTTP or HTTPS, path, and region.
Use purge syntax to determine the scope of the purge request.
Automate purging content via a script that leverages our REST API.
To purge content
Perform one of the following:
Purge | Procedure | Sample Syntax |
---|---|---|
Asset |
Append the name of the asset that you would like to purge to the relative path specified in step 3. |
presentations/Gala_01.flv |
Set of Assets |
Determine the naming convention and/or file type that will be used to identify the assets that will be purged. Append that pattern to the relative path specified in step 3. |
presentations/gala*.fl* |
Directory |
Append an asterisk (i.e., /*.*), a period, and another asterisk to the relative path specified in step 3. |
presentations/*.* |
Directory (Recursive) |
Append an asterisk (i.e., /*) to the relative path specified in step 3. |
presentations/* |
From the Regions option, perform one of the following steps:
Purge Specific Regions:
To perform a bulk purge
Purge Specific Regions:
Each CDN or edge CNAME URL specified in the URLs option must be placed on a separate line. This can be accomplished by using a carriage return to delimit each CDN or edge CNAME URL. Using any other type of character (e.g., a comma) as a delimiter may prevent the asset from being purged.
An individual assetA file is the most commonly known example of an asset. Refers to any collection of data that is typically stored as a single unit on a storage unit (e.g., disk drive). An example of an asset that is not physically stored on a disk drive occurs when dynamically generated content is not cached. may be purged by specifying a CDN or an edge CNAME URL that points to it. This type of purge request will also purge all query string variations of the specified asset at that location. Sample URLs are provided below.
URL Type | Sample URL |
---|---|
CDN URL |
http://can.0001.transactcdn.com/000001/resources/homepage.html |
Edge CNAME URL |
http://cdn.sampleurl.net/resources/homepage.html |
One or more asterisks may be used to restrict purging to content whose filename matches the specified pattern.
Key information:
Learn how to purge directories.
Sample purges are provided below.
Scope | Syntax/Example |
---|---|
All files that reside in the specified directory. |
Syntax: Append the following value to the URL that points to the desired directory: /*.*
Example: http://cdn.sampleurl.net/sales/*.*
|
All files that meet both of the following conditions:
|
Syntax: Append the following value to the URL that points to the desired directory: Example: http://cdn.sampleurl.net/sales/*.htm
|
All files that meet both of the following conditions:
|
Syntax: URL to the desired directory plus a filename pattern that identifies the desired files. Example: http://cdn.sampleurl.net/sales/a*.ht*
|
By default, our CDN service does not take into account query strings when caching content. However, query string caching may be enabled through either of the following:
Several examples on how query string variations of an asset may be purged are provided below.
Scope | Syntax/Example |
---|---|
Purge:
|
Syntax: Full URL (including filename) Example: http://cdn.sampleurl.net/path/sampleasset.htm
|
Purge original asset only. Query string variations of the specified asset will not be purged. |
Syntax: Full URL plus a question mark Example: http://cdn.sampleurl.net/path/sampleasset.htm?
|
Purge a specific query string variation of an asset. The original asset and all other query string variations of that asset will not be purged. |
Syntax: Full URL plus query string Example: http://cdn.sampleurl.net/path/sampleasset.htm?user=Joe
|
The default asset cached for a particular directory (i.e., directory index) may be purged through the use of the syntax described below.
Scope | Syntax/Example |
---|---|
Purge:
|
Syntax: Append / to the URL that points to the desired directory. Example: http://cdn.sampleurl.net/path/
|
Purge the default cached asset for a directory. Query string variations of the specified asset will not be purged. |
Syntax: Append the following value to the URL that points to the desired directory: /?
Example: http://cdn.sampleurl.net/path/?
|
Purge a specific query string variation of the default cached asset for a directory. The default cached asset for that directory and all other query string variations of that asset will not be purged. |
Syntax: Append a query string to the URL that points to the desired directory. Example: http://cdn.sampleurl.net/path/?user=Joe
|
When purging the default asset that was cached for a particular directory, keep in mind that there are certain conditions that may cause an asset other than the default asset for that directory to be purged. For example, specifying /path/ may not be the same as specifying /path/index.html even if index.html is the default asset for that directory. For example, this occurs when the specified URL is redirected or if URL rewriting is used.
The contents of a directory can be purged through the use of wildcards (i.e., *.*). This syntax will purge all of the assetA file is the most commonly known example of an asset. Refers to any collection of data that is typically stored as a single unit on a storage unit (e.g., disk drive). An example of an asset that is not physically stored on a disk drive occurs when dynamically generated content is not cached.s contained in the specified directory. It will not purge assets stored in subdirectories of the purge path.
Sample purge request:
All of the assets contained in a specified directory and its subfolders can be purged by appending /* to the purge directory.
Sample purge request:
An asterisk cannot be used to specify a directory pattern. It can only be used as specified above or when defining a pattern that will be used to define the set of assets that will be purged (e.g., /*.css).
Content may be purged from our entire network or solely from specific regions. Purging by region provides additional flexibility for determining when updated content may be served to clients.
Regional purging is designed to meet specialized cache management needs. When in doubt, purge content from all regions.
By default, purges are applied across the entire CDN network.
The available set of regions are described below.
Region | Description |
---|---|
North America |
This region encompasses all POPs in North America. |
US: Eastern Time Zone |
This region encompasses all POPs in the Eastern Time zone of the United States. |
US: Central Time Zone |
This region encompasses all POPs in the Central Time zone of the United States. |
US: Pacific Time Zone |
This region encompasses all POPs in the Pacific Time zone of the United States. |
Europe |
This region encompasses all POPs in Europe. |
Asia |
This region encompasses all POPs in Asia and Australia. |
View a list of POPs and their corresponding regions.
Key information:
The Regions option determines whether cached content will be purged from:
Specific Regions:
Selecting the North America region will purge content from all POPs in North America. This takes place regardless of whether other US regions have been cleared.
Purge content from specific regions in the US by clearing the North America option and then marking the desired regions.
Edgecast CDN