[squid-users] Re: adding content to the cache -- a revisit

From: <bergenpeak_at_comcast.net>
Date: Wed, 28 Oct 2009 11:22:00 -0600

[moving this to squid-users]

When squid is talking to a cache_peer, is there a way to tell squid that
if it gets a 404 back, to then send the request to the origin?

Note that I currently have the cache_peer defined as a parent.

Thanks

Henrik Nordstrom wrote:
> mån 2009-10-12 klockan 07:57 -0600 skrev bergenpeak_at_comcast.net:
>
>
>> The content I'm trying to manually install into the squid server will be
>> a subset of the origin server content, so for objects not manually
>> installed into squid, squid will still need to go directly back to the
>> origin server.
>>
>
> What you need is
>
> a) A HTTP server on the Squid server capable of serving the objects
> using HTTP, preverably with as identical properties as possible as the
> origin. This includes at least properties such as ETag, Content-Type,
> Content-Language, Content-Encoding and Last-Modified.
>
> b) wget, squidclient or another simple HTTP client capable of requesting
> URLs from the proxy.
>
> c) cache_peer line telling Squid that this local http server exists
>
> d) A unique http_port bound on the loopback interface, only used for
> this purpose (simplifies next step)
>
> e) cache_peer_access + never_direct rules telling Squid to fetch content
> requested from the unique port defined in 'd' from the peer defined in
> 'c' and only then..
>
> Regards
> Henrik
>
>
>
Received on Wed Oct 28 2009 - 17:22:11 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 29 2009 - 12:00:04 MDT