如何从IIS7中删除ETag头? [英] How do I remove eTag headers from IIS7?

查看:606
本文介绍了如何从IIS7中删除ETag头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上最好的高性能web站点的做法的,我想从我的头删除ETag时(我手动管理我所有的缓存,并没有必要对ETag的...当/如果我需要将规模扩大到一个农场,我真的很喜欢他们了)。我在Windows Server上运行的IIS7 2008年任何人都知道我能做到这一点?

Per Yahoo's best practices for high performance web sites, I'd like to remove Etags from my headers (I'm manually managing all my caching and have no need for Etags... and when/if I need to scale to a farm, I'd really like them gone). I'm running IIS7 on Windows Server 2008. Anyone know how I can do this?

推荐答案

在IIS7的eTag更改号码(以下的eTa​​g部分:)总是被设置为0

Under IIS7 the Etag change number (the part of the Etag following : ) is always set to 0.

因此​​,从Etag的服务器不再变化从服务器到服务器的相同的文件,因此,雅虎的最佳做法不再适用真正

Hence the Etag from the server no longer varies from server to server for the same file and therefore the Yahoo best practice no longer really applies.

既然你不能真正燮preSS上IIS7的ETag头它很可能是最好的,你不与它小提琴的。我迄今发现的最有用的配置规则是如果默认不破坏的东西,不要管它。

Since you can't actually suppress the ETag header on IIS7 it would probably be best that you don't fiddle with it at all. I've found by far the most useful configuration rule is "If the default doesn't break something, leave it alone".

这篇关于如何从IIS7中删除ETag头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆