Compression of Files

Dave Nelson asked on July 26, 2016 19:53

WebPageTest.org is reporting that many of our files are not being served with GZip. We have "Enable output compression" and "Enable resource compression" checked. And they are files being served via different means. How do I get them all to be served compressed?

  • /CMSPages/GetResource.ashx?scriptfile=%2fCMSScripts%2fCustom%2fcarousel.js
  • /CMSPages/GetResource.ashx?scriptfile=~%2fCMSScripts%2fCustom%2fapplication.js
  • /CMSPages/GetResource.ashx?stylesheetname=Application
  • /CMSPages/PortalTemplate.aspx?_TSM_Hidd...
  • /CMSScripts/Custom/vendor/modernizr-2.8.3.min.js
  • /CMSScripts/Custom/vendor/respond.min.js
  • /ScriptResource.axd?d=Q1xAHtLVcFpuD...
  • /WebResource.axd?d=oFGRV...

Correct Answer

Trevor Fayas answered on July 26, 2016 20:11

Compression must be turned on in IIS as well, have you checked if the server has this turned on?

Enable HTTP Compression

1 votesVote for this answer Unmark Correct answer

Recent Answers


Dave Nelson answered on July 26, 2016 20:43

Should we use Deflate or GZip on the server?

0 votesVote for this answer Mark as a Correct answer

Dave Nelson answered on July 26, 2016 20:51

I think I found my answer, Deflate is not widely supported so GZip is really the only option.

0 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on July 27, 2016 09:21

Hi Dave,

I also noticed the way you are referring these two files leads to Kentico serving non-compressed files

/CMSScripts/Custom/vendor/modernizr-2.8.3.min.js - /CMSPages/GetResource.ashx?scriptfile=/CMSScripts/Custom/vendor/modernizr-2.8.3.min.js

/CMSScripts/Custom/vendor/respond.min.js - /CMSPages/GetResource.ashx?scriptfile=/CMSScripts/Custom/vendor/respond.min.js

This will make sure that these two are also served properly.

Cheers, Chetan

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.