Clears specified domains from the cache of a site.
POST https://api-<BlueCat.edge.url>/v3/api/sites/{siteId}/clearCache
Authorization: Bearer authorization token
{
"type": "domains",
"domains": [
"www.bluecatnetworks.com",
"*.company.org"
]
}
Body parameters
- type—the domains to be cleared from the cache of the site. To clear all domains from the site cache, enter the value all. To clear specific domains from the site cache, enter domains.
- domains—a list of domains that you would like to clear from the site
cache, such as
www.bluecatnetworks.com.Attention: The list of domains is only required if you set the type to domains.
Behavior when clearing the cache
- When clearing the cache of a site, the cache is only cleared based on the query
itself and not the records in the answer.For example, if you clear the cache for
*.bluecatnetworks.com, it would clear the cache for the following types of entries:
orwebsite.bluecatnetworks.com IN A 1.2.3.4www.bluecatnetworks.com IN CNAME website.bluecatnetworks.com website.bluecatnetworks.com IN A 1.2.3.4However, the following entry would not be cleared:www.example.com IN CNAME website.bluecatnetworks.com website.bluecatnetworks.com IN A 1.2.3.4 - When clearing the cache of a site where you specify a domain, a wildcard
character is required to clear all subdomains of the specified domain
For example, if you clear the cache for
bluecatnetworks.com, only the cache is cleared forbluecatnetworks.comand notwww.bluecatnetworks.com.To ensure that all subdomains are cleared, you must use
*.bluecatnetworks.comto ensure thatwww.bluecatnetworks.comis also cleared.
Successful response
202 Accepted
Possible error codes:
- INTERNAL SERVER ERROR - Unexpected error