Quantcast
Viewing latest article 6
Browse Latest Browse All 36

Configure Entity Tags (ETags)

If you have ever used the YSlow (http://developer.yahoo.com/yslow/) to analyze the web page to improve the performance, you may have experienced with “Configure ETags” alert.

Image may be NSFW.
Clik here to view.
YSlow Analyse

What is Entity Tags (ETags)

Entity tags (ETags) are a mechanism web servers and the browser use to determine whether a component in the browser’s cache matches one on the origin server. Since ETags are typically constructed using attributes that make them unique to a specific server hosting a site, the tags will not match when a browser gets the original component from one server and later tries to validate that component on a different server. (http://developer.yahoo.com/performance/rules.html#etags)

“Configure ETags” is a recommended best practices for speeding up the website. If you are an ASP.NET developer, you can configure this by adding following code to the web.config file.

<system.webServer>
  <httpProtocol>
    <customHeaders>
      <clear/>
      <add name="ETag" value=" "/>
    </customHeaders>
  </httpProtocol>
</system.webServer>

Filed under: ASP.NET, CodeProject Tagged: ASP.Net, Entity Tag, Etag, technology, Web, Web Performance, YSlow Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing latest article 6
Browse Latest Browse All 36

Trending Articles