Actually, I am looking at a way of adding it directly to the squid
cache. Basically, take the file and add it to the cache. I am looking
into patching Squid to provide an API to do that. How complicated do
you think it is if I want to add the file content along with the
metadata directly into the cache ?

Laurent



----- Original Message ----
From: Jeff Pang <[email protected]>
To: Laurent Luce <[email protected]>
Cc: [email protected]
Sent: Monday, May 4, 2009 9:39:40 PM
Subject: Re: [squid-users] adding content to cache

Laurent Luce:
> I am looking for a way to manually add content to the cache. Is there an API 
> to do that ?
> 
> For example, I have the following file image.gif and I want to add it to the 
> proxy cache so it can be served from there when needed.
> 

You could use a tool like wget to pass requests through Squid then the object 
will be cached if it is cachable.
wget has some good arguments like "-p" or "-m"  which even can be used to cache 
the whole site.

-- Jeff Pang
DingTong Technology
www.dtonenetworks.com

Reply via email to