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 4 1575
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)
Showjumper wrote:
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
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?
"bruce barker" <no****@nospam.comwrote in message
news:eO**************@TK2MSFTNGP05.phx.gbl...
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)
Showjumper wrote:
>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
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.
"Showjumper" <nlsdkfjawrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>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
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.
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:OL**************@TK2MSFTNGP02.phx.gbl...
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.
"Showjumper" <nlsdkfjawrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bmgz |
last post by:
I am having problems trying to use the gzip module, I do the followig
>>>import gzip
>>>file = gzip.GzipFile("testfile.txt")
>>>file.write() -which params does this accept?, archive name?
I...
|
by: Xah Lee |
last post by:
today i need to use Python to decompress gzip files.
since i'm familiar with Python doc and have 10 years of computing
experience with 4 years in unix admin and perl, i have quickly located
the...
|
by: comp.lang.php |
last post by:
I am simply trying to zip together selected files into a single ZIP
file. Windows XP doesn't have a native process by which you can do
this, so I borrowed gzip, downloaded and installed, and upon...
|
by: Xah Lee |
last post by:
Python Doc Problem Example: gzip
Xah Lee, 20050831
Today i need to use Python to compress/decompress gzip files. Since
i've read the official Python tutorial 8 months ago, have spent 30...
|
by: David Thielen |
last post by:
Hi;
I am creating png files in my ASP .NET app. When I am running under Windows
2003/IIS 6, the file is not given the security permissions it should have. It
does not have any permission for...
|
by: Bill |
last post by:
I've written a small program that, in part, reads in a file and parses
it. Sometimes, the file is gzipped. The code that I use to get the
file object is like so:
if filename.endswith(".gz"):...
|
by: Gabriel Genellina |
last post by:
En Wed, 19 Nov 2008 13:25:03 -0200, Barak, Ron <Ron.Barak@lsi.com>
escribió:
Note *where* the exception is raised. Until something is actually read, no
check is made for the file format.
--...
|
by: Barak, Ron |
last post by:
Thanks Gabriel,
Okay, I get it: I was under the impression that the format check would be done on the open.
Bye,
Ron.
-----Original Message-----
From: Gabriel Genellina
Sent: Thursday,...
|
by: sentimental |
last post by:
Showjumper,
Images and HTML don't load at the same time on a web site. Your browser actually makes a separate request for each resource. So, you CAN use gzip to compress just the HTML on the...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |