Purge cache by custom cache key

更新时间:
复制 MD 格式

The Custom Cache Keys purge feature lets you purge cached files by URL, request headers, cookies, and user characteristics (device type, country/region, and language) based on your configured custom cache key rules, targeting files created with these custom cache key rules.

Use cases

When a caching rule uses a custom cache key, standard URL purge cannot remove the cached files. Use the Custom Cache Keys purge option instead.

Procedure

  1. In the ESA console, select Websites, and in the Website column, click the target site.

  2. In the left-side navigation pane, select Caching > Purge Cache.

  3. On the Purge Cache tab, configure the purge rule.

    For Type, select Custom Cache Keys.

    Parameter

    Description

    Example

    URL

    Required. Enter the full URLs to purge, one per line. Maximum: 1,000 URLs per request.

    • https://www.example.com/cat.jpg

    • https://www.example.com/image/cat.jpg?color=red

    Header

    Optional. Enter the name and value for each Header, one Header per line.

    Note: Do not use these header names (case-insensitive):

    • UserGeo

    • UserDeviceType

    • UserLanguage

    • Cookie

    • Name: headername

    • Value: headervalue

    Cookie

    Optional. Enter the Cookie value.

    example=123;image=456;test=789

    User characteristics

    Optional.

    • Device type: Select from the drop-down list.

    • Country/region: Select from the drop-down list.

    • Language: Select or enter the client language code. Must conform to ISO 639-1 or BCP47.

    Enter zh to purge Chinese-language content.

  4. Click Submit.

  5. Check the purge status.

    After you submit a purge task, track its progress on the Purge Records tab. 100% indicates completion. Large tasks may take longer.

Supported editions

Free

Basic

Standard

Advanced

Enterprise

Not supported

Not supported

Not supported

Not supported

2,000 times