Re: [squid-users] Exclude one URL from cache

This is a discussion on Re: [squid-users] Exclude one URL from cache within the Squid Users forums, part of the Web Server and Related Forums category; On Mon, 26 Apr 2004, Nick wrote: > I have squid setup as a reverse proxy and am trying to ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-26-2004
Henrik Nordstrom
 
Posts: n/a
Default Re: [squid-users] Exclude one URL from cache

On Mon, 26 Apr 2004, Nick wrote:

> I have squid setup as a reverse proxy and am trying to get one page excluded from cache. I thought I could do this with url_regex or urlpath_regex. Is my syntax wrong because the page still gets cached? How do I get one URL excluded? 2 examples of the URLs that would be excluded are
> http://test.test.com/classifieds-bin...ion=employment
> and
> http://test.test.com/classifieds-bin...classification
> =autos&date=today,sunday_before(today)&orderby=sta rt_date:d
>
> Here is what I put in the squid.conf file.
> acl excludeURL url_regex test.test.com\/classifieds-bin\/classifieds?temp_type=detail&category_number=333&c lassification
> =auto&date=today,sunday_before(today)&orderby=star t_date:d
> no_cache deny excludeURL



This is not correct regex syntax for the given URL, and why have you left
out the protocol part? You should also bind the pattern to start/end of
line.

It is mainly ., ? and + you need to escape as these have special meaning
in regex. There is also a few other special characters but these is not
very often seen in URLs. There is no need to escape the / as / is just /
and nothing special.

Complete list of special characters in regex: ^.[]$()|*+?{}\

See

man 7 regex

for a in-depth description of the regex language. Squid uses what is known
as "Modern/Extended" regex, not the old style regex syntax.

Regards
Henrik

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:36 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0