-
Notifications
You must be signed in to change notification settings - Fork 845
Open
Description
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