[squid-users] How do I no-cache the following url?

Amos Jeffries squid3 at treenet.co.nz
Fri May 1 05:10:43 UTC 2015


On 30/04/2015 12:47 p.m., Hussam Al-Tayeb wrote:
> What rule would I have to add to not cache the following url?
> http://images.example.com\imageview.gif?anything

That is not a URL. '\' is not a valid domain name character.


> Everything up to the "?" is an exact match.
> So I want to not cache
> http://images.example.com\imageview.gif?
> http://images.example.com\imageview.gif?anything
> http://images.example.com\imageview.gif?anything.gif
> etc...
> Thank you.
> 

The below answer assumes that you really meant the URL
http://images.example.com/imageview.gif?anything


 acl foo url_regex ^http://images\.example\.com/imageview\.gif
 cache deny foo


Amos



More information about the squid-users mailing list