Search squid archive

Re: How do I no-cache the following url?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux