Skip to content

Instantly share code, notes, and snippets.

@jcefoli
Created August 12, 2021 17:54
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 jcefoli/ea3aae53dd4801069b8668c7c27a8905 to your computer and use it in GitHub Desktop.
Save jcefoli/ea3aae53dd4801069b8668c7c27a8905 to your computer and use it in GitHub Desktop.
Web Config to disable aggressive IIS caching for php development on Windows
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
<caching>
<profiles>
<add extension=".html" policy="DisableCache" kernelCachePolicy="DisableCache" />
<add extension=".php" policy="DisableCache" kernelCachePolicy="DisableCache" />
<add extension=".txt" policy="DisableCache" kernelCachePolicy="DisableCache" />
</profiles>
</caching>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment