On Pingdom Tools I get a message to Compress components with gzip. We use asp.net on Windows 2016 server (IIS10). I have set in web.config the following
<httpCompression> <staticTypes> <add mimeType="text/*" enabled="true" /> <add mimeType="message/*" enabled="true" /> <add mimeType="application/javascript" enabled="true" /> <add mimeType="application/x-javascript" enabled="true" /> <add mimeType="image/jpeg" enabled="true" /> <add mimeType="image/png" enabled="true" /> <add mimeType="image/svg" enabled="true" /> <add mimeType="*/*" enabled="false" /> </staticTypes> <dynamicTypes> <add mimeType="text/*" enabled="true" /> <add mimeType="message/*" enabled="true" /> <add mimeType="application/javascript" enabled="true" /> <add mimeType="application/x-javascript" enabled="true" /> <add mimeType="image/jpeg" enabled="true" /> <add mimeType="*/*" enabled="false" /> </dynamicTypes> <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" dynamicCompressionLevel="8" /> </httpCompression> <urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="false" /> I have read that compressing jpg files might not be an advantage as it can actually make the file larger. I have gone through all files on the server and only jpg and png files do not have gzip or br set on content-encoding.
That leaves me with a few questions:
- Why do the jpg files not show as content-encoding: gzip
- Should I care about it?
- If I should care, how can I fix the problem?
wgetorcurl?