Kayıtlar

Eylül 14, 2010 tarihine ait yayınlar gösteriliyor

Http trafiğini optimize etmek

Http trafiğini optimize etmek için projeniz içindeki statik content (css,js,images) olan dosyaların içine boş bir web.config dosyası yaratın ve ekteki kodu yaratmış olduğunuz web.config dosyaları içine ekleyip kaydedin. <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <add name="Etag" value="&quot;&quot;" /> </customHeaders> </httpProtocol> <staticContent> <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" /> </staticContent> </system.webServer> </configuration> Http status 304 dönmesini sağlayacaksınız.