configuring e-tags

前端 未结 8 1378
有刺的猬
有刺的猬 2021-02-01 15:49

I am using Yslow as a simple speed benchmarking tool and I came across a really confusing concept. The E-tag

So the main problem is : How do I configure E-tags? my grade

相关标签:
8条回答
  • Think of E-Tags as a sort of hash. When a browser makes a request for a resource, it sends along the E-tag of the file version it has cached. If the server decides that the files are similar enough (there are "strong" and "weak" versions of E-Tags so it's not always a simple comparison check) it will send a "304 Not Modified" response to the client, rather than the resource itself. This translates into a speed boost, since it prevents bandwidth from being wasted on unchanged files.

    E-Tags are sent via HTTP headers.

    There's a good example of E-Tags at work (and also how to disable them for Apache) here: http://www.askapache.com/htaccess/apache-speed-etags.html

    0 讨论(0)
  • 2021-02-01 16:33

    This page shows how to disable ETags for IIS and this page shows how to do it for Apache.

    0 讨论(0)
提交回复
热议问题