Caching Everything

Thibaut Britz <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
Hi,

 

I would like to make polipo cache all the requests (without any exception,
ignoring all possible variants of a server's no cache headers), except if
the client sends a Pragma:no-cache header. (In my case there will only be
one application using the cache).

 

In the following setup, polipo for instance won't cache the results.

 

Expires: Thu, 01 Jan 1970 01:23:45 GMT

Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0

 

I tried patching the source code (eg the header assignment in http_parse.c
to drop such headers, but it didn't work)

Could you please send me in the right direction where and what I would have
to change in the sourcecode? Maybe there already exists an option I haven't
seen, as there is also a censoredHeaders on the client site.

 

The easiest way right now would be to chain two instances (one stripping the
headers), the other one caching the data. But it's not a nice solution.

 

 

Thanks,

Thibaut

 

 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.