Is there any way to get Azure Web Sites to serve gzip'ed content for requests from a HTTP 1.0 proxy like Amazon Web Services CloudFront? Consider a request like this:
curl -I -H "accept-encoding: gzip,deflate,sdch" -H "Via: 1.0 {foo.cdn.net}" -0 http://{fooproject}.azurewebsites.net/
It seems that the general way to accomplish is to add the following element to system.webServer
:
<httpCompression noCompressionForHttp10="false" noCompressionForProxies="false" />
It also seems that httpCompression
is only valid in ApplicationHost.config
and not web.config
which means that it's not overwriteable on Azure Web Sites.
Any suggestions for workarounds?
Additional resources:
IIS won't compress for HTTP/1.0 requests. You can override this behaviour by setting:
appcmd set config -section:system.webServer/httpCompression /noCompressionForHttp10:"False"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With