简体   繁体   中英

Are there Akamai debug headers that can be used to determine if and when a cache-tag was purged/invalidated/deleted?

Currently our organization is using the Akamai Fast Purge v3 API to invalidate cache records by cache tag. The problem I'm running into is that some of our lower environments are configured with a TTL of 0 seconds, apparently to facilitate business user testing.

As a result, I'm finding it strangely difficult to manually test the new purge system we have in place because Akamai isn't actually caching anything. We're working with the business to set this to closer match production environments, but in the meantime I'm wondering if there are any debug headers that can be used to figure out if and when an invalidation / deletion occurred.

I have of course googled and found this somewhat useful if not incomplete and IMO strangely half-baked article from Akamai themselves that discuss debug cache headers and their meaning, but it seems very incomplete.

As far as I can tell, X-Cache is my best option from this article and as mentioned because of the 0 second TTL I will always get a MISS .

Are there any additional debug headers that could be useful in determining if my purge logic is effective, despite the 0 second TTL?

The better resource for Akamai's Pragma headers is the documentation site .

That said, there is no response header that will tell you when a cache purge was issued to the platform. Instead, you would have to look at the Control Center Event Viewer where you see and filter all events including just Fast Purge calls. 控制中心事件查看器的屏幕截图,显示了识别数据被遮挡的快速清除事件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM