On 19/08/2012 8:42 a.m., Abhishek Chanda wrote:
Hi,
Is there a way to force squid to cache an object? I am trying to do
this, a client and an apache server communicates. At some intermediate
point in the path, the response from Apache will be split and one copy
will go to the client, one to Squid. Will squid cache the object in
this situation? I assume it won't by default, is there a way to make
it cache?
Huh? you are only sending the responses to Squid?
Cache in indexed by *request* meta data.
Better to divert the client request through the proxy. That way the HTTP
up and downstream message flows are going through the proxy in the right
directions. Caching happens whenever Squid is able to do so safely. You
can force-cache using refresh_pattern options to violate HTTP behaviour
- with various levels of breakage visible to the clients; from outdated
responses to full-blown privacy violations.
Amos