Skip to content

Cache tag purger #3269

@mhf-ir

Description

@mhf-ir

I need a solution to my front end proxcy/cdn server to store cache in tags:

Example:
https://support.cloudflare.com/hc/en-us/articles/206596608-How-to-Purge-Cache-Using-Cache-Tags

Example this url:

http://example.tld/category34/article32.html?method=1

Orgin server response the header:

Pragma: public
Cache-Control: max-age=86400
Expires: Mon, 12 Mar 2018 20:58:27
Content-Type: text/html
X-Cache-Tags: ["category34", "article32"]

So the trafficserver knows this reposne must be cache but with two tag category34 and article32.

Now think my backend app need to have update whole cache system with tag category34 send purger request to trafficserver and trafick server remove whole cache of any items that contain category34 tag:

example:

curl -X DELETE -H "Content-Type: application/json" -d '["category34"]' http://trafficservercdn.tld/_cache/_purger

it's can be authentication via special header or special ips

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions