Search squid archive

Re: prevent 301 sites to be cached

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

 



Carsten Bachert wrote:
Hi all,

I use squid as revers proxy to server web pages.
Therefore I want to disable 301 sites to be cached.
My rule is:

acl stat301 http_status 301
cache deny stat301

//some lines deeper
        acl aclname http_status 200 301 302 500- 400-403 ...     # status
code in reply

I mention 301 sites are cached. So why does "cache deny stat301" does not
work properly?

My guess would be "cache (deny|allow)" only works with request ACLs. http_status is a reply ACL.

Is "acl aclname http_status 200 301 302..." correct?

Yes.

 Or should it be
"acl http_status 200 301 302"?

No.

Thanks in advance,

CaBa

Your best bet would be either to change your 301s (Moved Permanently) to 302s (Moved Temporarily), or use Cache-control headers with your 301s.

Chris

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

  Powered by Linux