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.

Yorumlar

Bu blogdaki popüler yayınlar

Haproxy ve arkada 2 nginx server yönlendirme

M101N: MONGODB FOR .NET DEVELOPERS questions 4.1

Visual Studio'da proje listesinden gereksiz proje isimlerini silmek isterseniz