Created
September 15, 2012 16:08
-
-
Save kevburnsjr/3728614 to your computer and use it in GitHub Desktop.
Revisions
-
kevburnsjr revised this gist
Sep 15, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,6 @@ sub vcl_fetch { if (beresp.status >= 200 && beresp.status < 400 && (req.request == "PUT" || req.request == "POST" || req.request == "DELETE")) { # Purge all the resources marked for cascading purge ban("req.http.host == " + req.http.host + " && obj.http.link ~ <" + req.url + ">;.rel=.inv-by."); } } -
kevburnsjr created this gist
Sep 15, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # LCI sub vcl_fetch { # For successful unsafe responses if (beresp.status >= 200 && beresp.status < 400 && (req.request == "PUT" || req.request == "POST" || req.request == "DELETE")) { # Purge all the resources marked for cascading purge ban("req.http.host == " + req.http.host + " && obj.http.link ~ <" + req.url + {">; rel="inv-by""}); } }