That looks great, and seems to be working ok. just let me run to examples by you real quick
Cached TCP_MEM_HIT/200 6230 GET www.example.com/logo.jpg - NONE/- image/jpeg Not Cached TCP_MISS/200 16347 GET www.example.com/photo_2.jpg - DIRECT/1.1.1.1 image/jpeg is that correct? and if i wanted so add another domain name would i do it like example 1 or example 2? acl cacheThisServer1 dstdomain .example2.com acl cacheThisServer dstdomain .example.com acl images rep_mime_type -i ^image/ # example 1 - no_cache deny !cacheThisServer !cacheThisServer1 !images # example 2 - no_cache deny !cacheThisServer !images no_cache deny !cacheThisServer1 !images Thanks so much for your great advice and fast response Dan --- Chris Robertson <[EMAIL PROTECTED]> wrote: > 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:[EMAIL PROTECTED] > Sent: Thursday, December 02, 2004 1:44 PM > To: [EMAIL PROTECTED] > 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 > __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail