绕过Akamai缓存的最佳方法是什么?

时间:2016-02-09 11:47:14

标签: caching akamai

我正在尝试对一个生活在akamai CND背后的网站进行一些验收测试。为确保网站部署/正常运行,我想绕过akamai。

我已尝试以下命令来测试标题:

curl -H "Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no" -IXGET http://www.blah.com/blah.css/

这会提供大量缓存信息,但不会完全绕过缓存。例如,如果文件丢失但在缓存中可用,则如果文件命中了带有该文件的akamai节点,则该文件将为200。

有没有人对此有任何经验可以提供帮助?

2 个答案:

答案 0 :(得分:2)

The best way to do this is find out what the Origin domain is Akamai accesses for content to cache and base your tests against those origin domains.

Here's a good link that lightly describes how Akamai works:

https://developer.akamai.com/stuff/Overview/Client_Edge_Servers_Origin.html

It might also be important to note that you could flush the cache and test proper caching of live files as testing only the back-end puts complete faith in Akamai not to fail.

I would test both the Origin servers, as well as the cached content for proper operation and consistency.

答案 1 :(得分:0)

目前还不确定Akamai的行为方式,但我知道您可以设置Cookie并在Cookie存在时使CloudFlare绕过内容。

这意味着它也是您需要创建的自定义规则。

祝你好运!