Re: adding content to the cache -- a revisit

2009-10-12 Thread Henrik Nordstrom
mån 2009-10-12 klockan 07:57 -0600 skrev bergenp...@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



adding content to the cache -- a revisit

2009-10-12 Thread bergenp...@comcast.net
There was a post on this same subject earlier this year.  Want to post 
again to see if the solution space might have changed and if not, to get 
clarity on the suggested solutions.


I've got a subset of content from a origin server that I would like to 
manually install into squid.  The content pages are fixed content wise 
but I need to install new pages several times a minute.   Much like the 
poster back in May, I was hoping there was some simple squid command 
that I could run to tell squid: 1) the web content page file name (which 
would already exist on the squid server) and 2) the name clients would 
use to http get this web page (and/or more complete object treatment info).


Since the content will already exist on the squid server, I want to 
avoid the approach of having squid pull the content from the origin server.


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. 


Thanks