One of my friend says, etags on off mode for speed up page loading. How to off etags with htaccess?
You might expect you can easily remove Entity tags, or Etag headers , in IIS by using <remove name="ETag" /> in the customHeaders node of the web. config configuration file. Luckily you can use an IIS URL Rewrite Outbound Rule in Windows Server to rewrite, and remove, the ETags response header.
Enable the cache eTags settingSearch for Cache Etags. Toggle Cache Etags to ON. If ON, Etag caching is enabled, which requires a website restart. The default value is ON.
Description. The remote web server is affected by an information disclosure vulnerability due to the ETag header providing sensitive information that could aid an attacker, such as the inode number of requested files.
To unset Etags use 3 lines below:
Header unset Pragma
FileETag None
Header unset ETag
But, to increase page loading speed, my advice is YSlow. perfect tool & Yslow recommends to use Etags instead of setting off.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With