开发者

How to turn off Etag with htaccess?

One of my friend says, etags on off mod开发者_JS百科e for speed up page loading. How to off etags with htaccess?


To unset Etags use 3 lines below:

Header unset Pragma
FileETag None
Header unset ETag 

But, to increase page loading speed, my advice is YSlow. perfect tool & Yslow recommends to use Etags instead of setting off.


Putting the following in your .htaccess should do the trick.

Header unset ETag
FileETag None

Note: Disabling etags only helps if you are hosting the same content from more than 1 server (such as when using a cluster or CDN). Take a look at wikipedia or yahoo best practices for more information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜