squid-3.0 (3.1?) ce: gzip+deflate

From: Gonzalo Arana <garana@dont-contact.us>
Date: 15 Oct 2003 14:32:10 -0300

Hi,

I'm back with this issue, now with squid-3.

I need some basic guides to know where may I add Content-Encoding: gzip
and/or deflate support for squid.

I added this directives (based on Robert Collins suggestion):
response_ce_negotiation on|off
response_ce_gzip_access acl access
response_ce_deflate_access acl access

I am kind of confused where in the code should I start patching:

My specific questions are:

1) Where (which structure/class?) should I store decision if to gzip or
   deflate (or none).
2) Where may I take that desition? Access to HttpRequest -or
   ClientHttpRequest?-, HttpReply are needed since I must evaluate
   Accept-Encoding header of client request, add Vary: Accept-Encoding
   and update ETag header to reply to client, ...
3) Where may I compress information reply sent to client?
   (ClientSocketContext is a good place?).

Thank you very much in advance,

-- 
Gonzalo Arana <garana@uolsinectis.com.ar>
UOL-Sinectis S.A.
Received on Wed Oct 15 2003 - 11:26:55 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:44 MST