Copied to clipboard

Flag this post as spam?

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


  • Nemanja Stankovic 9 posts 99 karma points
    Nov 21, 2019 @ 17:35
    Nemanja Stankovic
    0

    U7, Windows Server 2016 and static/dynamic files compression

    Dear all,

    I have a project on V7.13 and keep getting feedback from the SEO agency that TTFB is very long and that we should enable static and dynamic files compression.

    ISP is telling us that this is enabled and that from their end everything works fine (the usual answer).

    Does anyone have this issue with a Umbraco project? Is there something that I am missing?

    I know this is not strictly a Umbraco question, but maybe there is something additional in web.config Umbraco related that I can add/modify?

    Thank you.

    Cheers, Nemanja.

  • Paul Seal 524 posts 2889 karma points MVP 7x c-trib
    Nov 21, 2019 @ 23:34
    Paul Seal
    0

    You can do it in the web.config file.

    These are the settings I have in mine.

    <system.webServer>
        <staticContent>
          <clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
          <remove fileExtension=".air" />
          <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package+zip" />
          <remove fileExtension=".svg" />
          <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
          <remove fileExtension=".woff" />
          <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
          <remove fileExtension=".woff2" />
          <mimeMap fileExtension=".woff2" mimeType="font/woff2" />
          <remove fileExtension=".less" />
          <mimeMap fileExtension=".less" mimeType="text/css" />
          <remove fileExtension=".mp4" />
          <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
          <remove fileExtension=".json" />
          <mimeMap fileExtension=".json" mimeType="application/json" />
        </staticContent>
    
        <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
          <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
          <dynamicTypes>
            <add mimeType="text/*" enabled="true" />
            <add mimeType="message/*" enabled="true" />
            <add mimeType="application/javascript" enabled="true" />
            <add mimeType="*/*" enabled="false" />
          </dynamicTypes>
          <staticTypes>
            <add mimeType="text/*" enabled="true" />
            <add mimeType="message/*" enabled="true" />
            <add mimeType="application/javascript" enabled="true" />
            <add mimeType="*/*" enabled="false" />
          </staticTypes>
        </httpCompression>
        <urlCompression doStaticCompression="true" doDynamicCompression="true" />       
    </system.webServer>
    

    See how you get on with that.

    Cheers

    Paul

  • Nemanja Stankovic 9 posts 99 karma points
    Nov 22, 2019 @ 15:14
    Nemanja Stankovic
    0

    Paul, thank you very much.

    Waiting for the reply from the SEO guys, but I see that the browser console is reporting that caching is being used.

    Cheers, Nemanja.

Please Sign in or register to post replies

Write your reply to:

Draft