The purge cache by custom cache key feature enables you to define a URL for purging. You can also configure elements like the Header, Cookie, and user attributes included in the user request such as device type, country/region, and language. The system then generates a cache key based on the specified custom cache key rules. This way, you can purge cache files precisely according to your custom cache keys rules.
Scenarios
The purge by URL feature is not applicable when you apply a custom cache key. Instead, you use the purge cache by custom cache key feature to remove the cache file for the specified URL defined in your custom cache key.
Procedure
In the ESA console, choose Websites and click the website name you want to manage.
In the left-side navigation pane, choose .
On the Purge Cache tab, set up the purge rules.

Click Submit.
Check the purge progress.
You can view the progress and details of a purge task on the Purge Records tab. The purge task is complete when the progress reaches 100%. The duration varies based on the number of objects that you want to purge.
Purge rules settings
With these settings, you can purge specified URLs.
Type
Select Custom Cache Keys.
URL
Required. Enter the URLs to be purged in the input box. Each URL must specify the full path of the file. Separate URLs by line, with a maximum of 1,000 URLs at a time.
For example:
https://www.example.com/cat.jpg
https://www.example.com/image/cat.jpg?color=redHeader
Optional. Enter the name and value of the Header in the input box, one Header per line. You can add multiple headers.
Do not enter the following four header names (case-insensitive):
UserGeoUserDeviceTypeUserLanguageCookie
Cookie
Optional. Enter the value of the Cookie in the input box.
For example: example=123;image=456;test=789
User characteristics
Optional.
Device type: Select the device type of the client from the drop-down list.
Country/Region: Select the country/region where the client is located from the drop-down list.
Language: Select the language code used by the client from the drop-down list or directly enter the language code. The language code follows the ISO 639-1 standard or the BCP47 standard.
For example: Enter en, which indicates purging content in English.