Re: regarding content compression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Torsten Foertsch wrote:
Hi,

I am about to set up compression. One thing puzzles me a bit. Nowadays most browsers know how to handle compressed data. So, it seems to me that storing that data compressed on disk and send it via sendfile would be better than having mod_deflate compress it each time anew. The few clients that don't know how to handle it can then be served using the INFLATE filter.

Is that a sound approach?

Hi.
I think one issue is the type of header you are going to have to send to the browser. You have to send it a "Content-Type" header that indicates the original content-type before compression (like "text/html"), and another header (forget what its name is) that indicates that this content was compressed just for transmission (like gzip or something). Otherwise the browser will think that the original content is the compressed file, and propose to save it to disk. And Apache by itself would look at the compressed file on disk, and serve it as such, no ?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux