Skip to content

Instantly share code, notes, and snippets.

@oledid
Created June 19, 2015 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oledid/7642224f9b3012ecc873 to your computer and use it in GitHub Desktop.
Save oledid/7642224f9b3012ecc873 to your computer and use it in GitHub Desktop.
IIS Add headers to disable client-side caching for static file
<?xml version="1.0"?>
<configuration>
<location path="index.html">
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Cache-Control" value="no-cache, no-store, must-revalidate" />
<add name="Pragma" value="no-cache" />
<add name="Expires" value="0" />
</customHeaders>
</httpProtocol>
</system.webServer>
</location>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment