Search squid archive

Re: pazzled about url_regex

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

 



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

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

  Powered by Linux