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
bruce barker - 06 Sep 2007 04:00 GMT
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)
> 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
[quoted text clipped - 4 lines]
>
> Ashok Padmanabhan DVM
Showjumper - 06 Sep 2007 14:13 GMT
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?
> that fairly typical of trying to compress a file thats already been
> compressed.
[quoted text clipped - 15 lines]
>>
>> Ashok Padmanabhan DVM
George Ter-Saakov - 06 Sep 2007 19:50 GMT
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 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
[quoted text clipped - 4 lines]
>
> Ashok Padmanabhan DVM
Showjumper - 07 Sep 2007 13:50 GMT
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.
> You are not supposed to GZip images. Gif and Jpeg are already compressed
> formats. And you can not compress them more.
[quoted text clipped - 10 lines]
>>
>> Ashok Padmanabhan DVM