-
-
Save VladoMS/888680c152d94ea6f3f651aab7ed5894 to your computer and use it in GitHub Desktop.
IIS serve pre-compressed static gzip files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<staticContent> | |
<clientCache cacheControlMode="UseExpires" httpExpires="Tue, 19 Jan 2038 03:14:07 GMT" /> | |
<mimeMap fileExtension=".js.gz" mimeType="application/javascript" /> | |
</staticContent> | |
</system.webServer> | |
<location path="gz"> | |
<system.webServer> | |
<urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" /> | |
<httpProtocol> | |
<customHeaders> | |
<add name="content-encoding" value="gzip" /> | |
</customHeaders> | |
</httpProtocol> | |
</system.webServer> | |
</location> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment