lojzik / avr-uip

Automatically exported from code.google.com/p/avr-uip
0 stars 0 forks source link

need support for gzip html file headers #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
...

Original issue reported on code.google.com by qarc...@gmail.com on 29 Apr 2011 at 4:00

GoogleCodeExporter commented 8 years ago

Original comment by qarc...@gmail.com on 29 Apr 2011 at 4:03

GoogleCodeExporter commented 8 years ago
Isn't there some way to make Apache do this? Again, I remember doing it in 
1.3...

AddType text/html .html.gz doesn't appear to do anything. When I look at the 
headers, I see:

Content-Type: application/x-gzip
Content-Encoding: gzip

when I think I should be getting:

Content-Type: text/html
Content-Encoding: gzip

Original comment by qarc...@gmail.com on 2 Jun 2011 at 1:43

GoogleCodeExporter commented 8 years ago
http://developer.yahoo.com/performance/rules.html

"

Starting with HTTP/1.1, web clients indicate support for compression with the 
Accept-Encoding header in the HTTP request.

      Accept-Encoding: gzip, deflate

If the web server sees this header in the request, it may compress the response 
using one of the methods listed by the client. The web server notifies the web 
client of this via the Content-Encoding header in the response.

      Content-Encoding: gzip

Gzip is the most popular and effective compression method at this time. It was 
developed by the GNU project and standardized by RFC 1952. The only other 
compression format you're likely to see is deflate, but it's less effective and 
less popular.

Gzipping generally reduces the response size by about 70%. Approximately 90% of 
today's Internet traffic travels through browsers that claim to support gzip. 
If you use Apache, the module configuring gzip depends on your version: Apache 
1.3 uses mod_gzip while Apache 2.x uses mod_deflate. 

"

Original comment by qarc...@gmail.com on 2 Jun 2011 at 1:46

GoogleCodeExporter commented 8 years ago
http://en.wikipedia.org/wiki/HTTP_compression

Original comment by qarc...@gmail.com on 2 Jun 2011 at 1:49