Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nikhil 54 posts 166 karma points
    Mar 03, 2020 @ 10:17
    Nikhil
    0

    Removing the ETag and ImageProcessedBy headers.

    I can see the the ETag and ImageProcessedBy headers. I am unable to remove these. Any suggestions?

    ETag removal is a Yahoo suggestion: ETag removal Yahoo Best Practices

    enter image description here

    enter image description here

    enter image description here

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Mar 04, 2020 @ 00:01
    Alex Skrypnyk
    1

    Hi Nikhil,

    Great article how to remove these headers - https://www.saotn.org/remove-etags-http-header-iis/

    Thanks,

    Alex

  • Nikhil 54 posts 166 karma points
    Mar 04, 2020 @ 10:03
    Nikhil
    0

    Thanks Alex.

    Yahoo says: "The problem with ETags is that they typically are constructed using attributes that make them unique to a specific server hosting a site. ETags won't match when a browser gets the original component from one server and later tries to validate that component on a different server, a situation that is all too common on Web sites that use a cluster of servers to handle requests. By default, both Apache and IIS embed data in the ETag that dramatically reduces the odds of the validity test succeeding on web sites with multiple servers."

    So this is an issue with sites having multiple servers.

  • Nikhil 54 posts 166 karma points
    Mar 04, 2020 @ 10:06
    Nikhil
    0

    For the ImageProcessedBy header I added:

    <rewrite>
        <outboundRules>
            <rule name="Remove ImageProcessedBy header value">
                <match serverVariable="RESPONSE_ImageProcessedBy" pattern=".+" />
                <action type="Rewrite" replace="true" />
            </rule>
        </outboundRules>
    </rewrite>
    

    This blanked out the value of the header but did not remove it.

    ImageProcessedBy blank value

Please Sign in or register to post replies

Write your reply to:

Draft