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 <pangj_at_arcor.de>
To: Laurent Luce <laurentluce49_at_yahoo.com>
Cc: squid-users_at_squid-cache.org
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
Received on Sun May 10 2009 - 02:04:49 MDT
This archive was generated by hypermail 2.2.0 : Mon May 11 2009 - 12:00:01 MDT