Skip to content

Instantly share code, notes, and snippets.

@hereswhatidid
Created November 16, 2012 15:41
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save hereswhatidid/4088320 to your computer and use it in GitHub Desktop.
Save hereswhatidid/4088320 to your computer and use it in GitHub Desktop.
IIS config file for setting a Vary: Accept-Encoding header
<?xml version="1.0" encoding="UTF-8"?>
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="Vary"></remove>
<add name="Vary" value="Accept-Encoding"></add>
</customHeaders>
</httpProtocol>
</system.webServer>
@Sahil1992
Copy link

Hey I'm new to this so i don't know where exactly place this file and how to use it.

Please help me out.

TIA

@iamr8
Copy link

iamr8 commented Nov 24, 2017

@Sahil1992 this file is placed at your project root as web.config. do the changes as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment