简体   繁体   English

如何防止elmah url /elmah.axd在使用akamai时不被缓存

[英]How to prevent elmah url /elmah.axd to not be cached when using akamai

So, for one of our ASP.NET MVC website, we are using Akamai to cache all pages, what has happened coz of this, even our elmah url "/elmah.axd" is also cached. 因此,对于我们的一个ASP.NET MVC网站,我们使用Akamai来缓存所有页面,这发生了什么,甚至我们的elmah url“/elmah.axd”也被缓存。

A quick google search didnt yield any help, as of now I have a workaround to see the actual elmah logs, I apply a random query param and I can get to see the non-cached errors. 一个快速的谷歌搜索没有产生任何帮助,截至目前我有一个解决方法,以查看实际的elmah日志,我应用随机查询参数,我可以看到非缓存的错误。

How do akamai to not cache it ? akamai如何不缓存它?

I'm gonna answer your question, hoping that your elmah.axd is under heavy authentication :) 我要回答你的问题,希望你的elmah.axd经过严格的认证:)

you can setup an akamai delivery configuration to avoid caching any resource you decide, you can specify a rule on the property manager where you can match by path or extension or whatever other combination/condition and apply a no-store behaviour, this will basically bypass the cache for every hit and akamai will just proxy the client's call to your servers, still effectively hiding the origin but actually querying it every time 您可以设置一个akamai交付配置以避免缓存您决定的任何资源,您可以在属性管理器上指定一个规则,您可以通过路径或扩展或任何其他组合/条件匹配并应用无商店行为,这将基本绕过每个命中和akamai的缓存只会代理客户端对服务器的调用,仍然有效地隐藏原点但实际上每次查询它

PS. PS。 if i were you i would completely close-off the elmah script using akamai (creating a rule that will just redirect or bounce any requests to it) and access only calling the origin (which should be known only to a handful of people) 如果我是你,我将使用akamai完全关闭elmah脚本(创建一个只会重定向或反弹任何请求的规则)并且只访问调用原点(只有少数人知道)

PPS. PPS。 a good practice tip: don't allow random query strings to create new cache-keys and bypass akamai's cache, you are making your origin server potentially vulnerable to flood, rendering the nice akamai shield less effective 一个好的做法提示:不允许随机查询字符串创建新的缓存密钥并绕过akamai的缓存,你使你的原始服务器可能容易受到泛滥,使得好的akamai盾牌效率降低

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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