Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matthew Wise 271 posts 1373 karma points MVP 5x c-trib
    Apr 22, 2019 @ 11:33
    Matthew Wise
    0

    Gzip compression on Umbraco Cloud

    Hi all,

    So I had gzip working in everything. Without editing the config. However without adding any resources are not been gzipped.

    So I added

    <system.webServer>
    <urlCompression doStaticCompression="true" doDynamicCompression="true" />
    <httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024">
      <scheme dll="%Windir%\system32\inetsrv\gzip.dll" name="gzip"/>
      <dynamicTypes>
        <add enabled="true" mimeType="text/*" />
        <add enabled="true" mimeType="message/*" />
        <add enabled="true" mimeType="application/javascript" />
        <add enabled="true" mimeType="application/json" />
        <add enabled="true" mimeType="application/json; charset=utf-8" />
        <add enabled="false" mimeType="*/*" />
      </dynamicTypes>
      <staticTypes>
        <add enabled="true" mimeType="text/*"/>
        <add enabled="true" mimeType="message/*"/>
        <add enabled="true" mimeType="application/javascript"/>
        <add enabled="true" mimeType="application/json"/>
        <add enabled="true" mimeType="application/json; charset=utf-8" />
        <add enabled="false" mimeType="*/*"/>
      </staticTypes>
    </httpCompression>
    ...
    </system.Webserver>
    

    Which results in

    enter image description here

    All the scripts/css are in the same folder. with a location section of

    <location path="common">
    <system.webServer>
      <urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="false" />
      <staticContent>
        <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="300.00:00:00" />
      </staticContent>
    </system.webServer>
    

    As you can see some of the scripts/css have not been compressed neither has the document request.

    Any ideas?

    Thanks Matt

  • Thomas 319 posts 606 karma points c-trib
    Sep 09, 2019 @ 07:49
    Thomas
    0

    Hey,

    Did you get this to work ? :)

  • Matthew Wise 271 posts 1373 karma points MVP 5x c-trib
    Sep 09, 2019 @ 08:01
    Matthew Wise
    101

    Contacted Cloud support and they fixed it on their end.

    Matt

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies