Hello Logu,
You mean to ask, how to configure squid to cache certain objects (like
image/jpeg, application/pdf, etc) irrespective of whether it is a dynamic or
static content . That is, even if the url contains '?' you need to cache
images. Is this correct?
Regards,
Senthil Murugan
----- Original Message -----
From: "Logu" <logsnaath@xxxxxxxxx>
To: "Henrik Nordstrom" <hno@xxxxxxxxxxxxxxx>
Cc: "Squid Users" <squid-users@xxxxxxxxxxxxxxx>
Sent: Friday, August 05, 2005 9:24 PM
Subject: Re: caching objects based on content type
Is it possible to make squid to cache objects based on content-type. I
have a microsoft webserver which serves images. The url looks something
like http://www.abc.net/pixdll?no=24 and the content type is either
image/jpeg or sometimes text/html . But none of these obejects or not
cached. Is it possible to cache only the image/jpeg content.
Unfortunately not without first coding the feature.
In theory one should be able to use the no_cache directive with the
rep_mime_type ACL but this can not work today as no_cache is evaluated
before forwarding the request only (i.e. no response available yet to
find
the mime type from).
Hi Henrik
thanks for your reply.
Sorry., I think I have not put my problem correctly. I have a microsoft
webserver and I want squid to act as a reverse proxy for it. The url is
something like http://www.abc.net/pixdll?no=24. Mostly the content type
servered from these type of url is image/jpeg. But squid thinks these
pages
are not cachable and these images are not cached. Is it possible to cache
these objects (based on the content type header).
Thanks
-logu