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

22.06.2020 - 26.06.2020 arası işler

Asp.net RestSharp ile data post etmek

List Box Item içindeki elemanları aşağı veya yukarı taşımak