Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling JavaScript GZIP compression in IIS?

we're looking to compress our gargantuan JavaScript files with GZip to speed up the page loads of our site. I know this can be done through IIS, but I can't seem to find a simple step-by-step guide on how to implement it.

If someone could point me towards such a guide, I'd really appreciate it. I've never done this before, so it would need to be quite basic.

We're running IIS7.5 on Windows Server 2008 R2.

Your time is much appreciated.

like image 370
Chuck Le Butt Avatar asked Mar 24 '10 18:03

Chuck Le Butt


1 Answers

Turns out it's really easy:

  1. Go into IIS Manager
  2. Go to the site in question
  3. Go to 'Compression' (under IIS) and double-click on it
  4. Ensure that 'Enable static compression' is enabled.

Simple as that!

The only issues come with dynamically generated content, but I'm not interested in compressing that, so this is my answer. (Can't believe it was so easy... the other guides made it look like a nightmare!)

like image 154
Chuck Le Butt Avatar answered Sep 30 '22 03:09

Chuck Le Butt