Best approach for expiring objects

Thiago Figueiro TFigueiro at au.westfield.com
Fri Jan 21 04:28:03 CET 2011


From: Caunter, Stefan
> So purge if backend is healthy? Should be possible in vcl.

sub vcl_recv {
(...)
        # Allow purging if backend is healthy
        if (req.backend.healthy) {
                if (req.http.Pragma ~ "no-cache" ||
req.http.Cache-Control ~ "no-cache") {
                        purge("req.url == " req.url " && req.http.host
== " req.http.host );
                }
        }


______________________________________________________
    CONFIDENTIALITY NOTICE    
This electronic mail message, including any and/or all attachments, is for the sole use of the intended recipient(s), and may contain confidential and/or privileged information, pertaining to business conducted under the direction and supervision of the sending organization. All electronic mail messages, which may have been established as expressed views and/or opinions (stated either within the electronic mail message or any of its attachments), are left to the sole responsibility of that of the sender, and are not necessarily attributed to the sending organization. Unauthorized interception, review, use, disclosure or distribution of any such information contained within this electronic mail message and/or its attachment(s), is (are) strictly prohibited. If you are not the intended recipient, please contact the sender by replying to this electronic mail message, along with the destruction all copies of the original electronic mail message (along with any attachments).
______________________________________________________




More information about the varnish-misc mailing list