Re: [squid-users] pazzled about url_regex

From: Felix New <moxnetx@dont-contact.us>
Date: Wed, 7 Feb 2007 10:10:31 +0800

Henrik,

Thank you for your reply.

what make me pazzled is, i want to write a regex within one line in
direct "cache deny nocache" for easy maintenance. the nocache is my
url_regex name;

my aclname function:

for some urls:
---Star---
img.domain.com/a/*
img.domain.com/b/*
img.domain.com/x/logo.jpg
----End---
i want only cache http://img.domain.com/x/logo.jpg, and all others nocache.

i have writed the direct:
----Star---
acl nocache url_regex ^http://a\.com/.*$
acl nocache url_regex ^http://b\.com/.*$
***
acl nocache url_regex ^http://c\.com/.*$
cache deny nocache
----End---
So, i want to add one line to above, position with tag "----Star---".
i write this:
acl nocache url_regex ^http://img\.domain\.com/.*$ &&
!^http://img\.domain\.com/x/logo\.jpg
but, all not cached, contain http://img.domain.com/x/logo.jpg what i
want cached.

--
Best regards
Felix New
Received on Tue Feb 06 2007 - 19:10:34 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST