I am not sure what the answer is and if it's even possible to enable this on the Umbraco Cloud hosting platform as we don't have access to edit that file.
If you use Kudu you can see the ApplicationHost.config file, but you are not given permission to view or edit it. I think this is something someone in the Umbraco Cloud team would need to answer?
I'm curious about this as well. Easy enough to get GZip compression working with most files by modifying the web.config, but I would still need to modify the ApplicationHost.config file to enable GZip compression with SVG images (since SVG is a text format, it would compress well).
You can't control compression by modifying the web.config. Compression is controlled server-side by using an applicationHost.config as @ChrisHouston mentioned.
You can not modify the applicationHost.config directly, however we will run any applicationHost.xdt transform in C:\home\site, essentially enabling SVG compression on your Cloud Site.
We had the problem on umbraco cloud aswell. You are not able to do it yourself you should contact support for umbraco cloud. They need to set the setting properly
Umbraco Cloud - Gzip compression
Hi, I need to get gzip compression works on Umbraco cloud.
I have added the below to my web.config under system.webServer but it doesn't seem to work.
This currently works on local machine. I have also enabled static compression as follows:
Any help is much appreciated. Maybe the path of the directory is not good. See http://issues.umbraco.org/issue/UAAS-380
Hi Ronish
Did you find a way to do it?
/Alex
This looks right too me.
Is nothing being compressed? Have you looked with fiddler to see what your requests are returning?
Hi, These settings need to be added to the ApplicationHost.config file and not the web.config file.
You can find more details about it here:
https://docs.microsoft.com/en-us/iis/configuration/system.webserver/httpcompression/
I am not sure what the answer is and if it's even possible to enable this on the Umbraco Cloud hosting platform as we don't have access to edit that file.
If you use Kudu you can see the ApplicationHost.config file, but you are not given permission to view or edit it. I think this is something someone in the Umbraco Cloud team would need to answer?
Cheers,
Chris
I'm curious about this as well. Easy enough to get GZip compression working with most files by modifying the web.config, but I would still need to modify the
ApplicationHost.config
file to enable GZip compression with SVG images (since SVG is a text format, it would compress well).You can't control compression by modifying the web.config. Compression is controlled server-side by using an applicationHost.config as @ChrisHouston mentioned.
You can not modify the applicationHost.config directly, however we will run any applicationHost.xdt transform in
C:\home\site
, essentially enabling SVG compression on your Cloud Site.As per: https://stackoverflow.com/questions/14410331/cant-get-iis7-to-gzip-font-face-font-files/23940235#23940235, in order to enable SVG, WOFF, EOT and TTF compression you'd need to add those in the config transform under dynamic and static types attributes.
We had the problem on umbraco cloud aswell. You are not able to do it yourself you should contact support for umbraco cloud. They need to set the setting properly
is working on a reply...