Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Gzip weirdness

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Showjumper - 06 Sep 2007 02:06 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.