문제

Running my site on IIS7 and looking to improve my Yslow rating. Working with asp.net.

I am able to cache static resources in the web.config but is it possible to the following also:

Set the etag on the resources eg. javascript, images, css files etc Add expires header to the above static resources Set gzipping on components

Previously I use to use httphandlers to achieve the above but if its possible to set it up in the web.config it would be great.

도움이 되었습니까?

해결책

As far as I'm aware you cannot set your etag values in your web.config and have it work. Check out How do I remove eTag headers from IIS7? for more information. You can try setting a blank etag via IIS however to remove it completely.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top