| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On November 15, 2002 06:38 pm, Mark Swanson wrote:
> Perhaps all we need to do is modify the patch to also send back the header:
> "Vary: Accept-Encoding"
>
> http://lists.over.net/pipermail/mod_gzip/2002-September/006474.html
KDE3.1rc2 crashed while sending the last message so forgive me if this is a
repeat.
In a nutshell, I have it working with or without squid. If squid is used the
data is never compressed. If squid is not used, the data is always
compressed.
The patch Miles submitted works, and you need to add:
echo 1 > /proc/sys/net/tux/compression
echo 0 > /proc/sys/net/tux/extra_html_header_size
echo "Vary: Accept-Encoding" >/proc/sys/net/tux/extra_html_header
echo 21 > /proc/sys/net/tux/extra_html_header_size
echo "http://127.0.0.1:80" > /proc/net/tux/0/listen/0
And you need to modify proto_http.c so it looks like this:
/*
* Possibly add an extra HTML header:
*/
if (tux_extra_html_header_size && mime && !strcmp(mime->type,
"text/html")) {
unsigned int len = tux_extra_html_header_size;
//memcpy(curr, tux_extra_html_header, len);
//curr += len;
curr += sprintf(curr, "\r\n%s", tux_extra_html_header);
}
COPY_STATIC_PART(4, curr);
HTML et. all. compress around 400% - 500%.
I've gone live with this so you can see this working for yourself at:
http://www.ScheduleWorld.com/
Please let me know if it does not work for you.
Cheers.
- --
Schedule your world with ScheduleWorld.com
http://www.ScheduleWorld.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE91c3+BtoFHHwdJ/cRAotSAKCwjHoHiZ8+dTfRle22RsblZ9DX1QCeONPq
5MGCBuKsNc0jgwQ251k4TbY=
=tws4
-----END PGP SIGNATURE-----
[Older Fedora Users Mail] [Home] [Fedora Legacy] [Fedora Desktop] [iPod Nano] [ATA RAID] [Fedora Bible] [Fedora Marketing] [Fedora Mentors] [Fedora Packaging] [Fedora SELinux] [Big List of Linux Books] [Yosemite News] [Yosemite Photos] [KDE Users] [Fedora Tools] [Fedora Docs]