Set the server you want cached with:
acl cacheThisServer dstdomain .example.com
And since you just want to cache images, I think:
acl images rep_mime_type -i ^image/
will work.
Then pull it all together with:
no_cache deny !cacheThisServer !images
Voila! Don't cache anything but images from the cacheThisServer. Can
someone verify my logic? Will rep_mime_type work for the no_cache acl?
Otherwise, you'd have to do it via filename extension (e.g. .jpg, .gif,
etc), and that sounds like a lot more typing...
Chris
-----Original Message-----
From: Dan [mailto:suedes098@yahoo.com]
Sent: Thursday, December 02, 2004 1:44 PM
To: squid-users@squid-cache.org
Subject: [squid-users] just cache images
I'm looking to setup a simple image proxy that only
caches certain types of images.
for example i want to only cache 1 websites images and
not any other website.
so say someone goes to example.com and views a page
with
index.asp, hello.gif, hello.png
how could i set it up to only cache *.gif on
example.com and not on test.com or anything else?
Thank you very much for your help and advice
Dan
__________________________________
Do you Yahoo!?
Jazz up your holiday email with celebrity designs. Learn more.
http://celebrity.mail.yahoo.com
Received on Thu Dec 02 2004 - 16:12:33 MST
This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:01 MST