Gzip weirdness

  • Thread starter Thread starter Showjumper
  • Start date Start date
S

Showjumper

I tried using a custom Http Module to Gzip pages since my host wont enable
GZIP via IIS. What i found was that page size actually increased - the
increase came from the images. The total size of the 15 images on the page
increased by about 15K with Gzip enabled using the Http Module. Anyone else
experience this? The acutal size of the rendered HTML did decrease by about
50%.

Ashok Padmanabhan DVM
 
that fairly typical of trying to compress a file thats already been
compressed.

standalone zip makes multiple tries, and will notice nothing works, so
no compression is used and only a little overhead is added to the file.

with http/gzip the blocks must be ziped as they pass and every block
pays the extra overhead, so the file is larger.

-- bruce (sqlwork.com)
 
So then it really isnt worth to Gzip via an HttpModule since the final
overhead is actually more even though the HTML size is smaller. Right?
 
You are not supposed to GZip images. Gif and Jpeg are already compressed
formats. And you can not compress them more.
Try to configure it so it comresses only aspx, html, js, css.

George.
 
I am not deliberately zipping the images. Its just that the total image file
size increases when using any Gzip HttpModule. I even tried excluding file
types in web.config and that still still did not help.
 
Back
Top