File tree 2 files changed +6
-0
lines changed
app/code/Magento/PageCache/etc
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ sub vcl_recv {
26
26
if (client.ip !~ purge ) {
27
27
return (synth (405, "Method not allowed"));
28
28
}
29
+ # To use the X-Pool header for purging varnish during automated deployments, make sure the X-Pool header
30
+ # has been added to the response in your backend server config. This is used, for example, by the
31
+ # capistrano-magento2 gem for purging old content from varnish during it's deploy routine.
29
32
if (!req.http.X-Magento-Tags-Pattern && !req.http.X-Pool ) {
30
33
return (synth (400, "X-Magento-Tags-Pattern or X-Pool header required"));
31
34
}
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ sub vcl_recv {
27
27
if (client.ip !~ purge ) {
28
28
return (synth (405, "Method not allowed"));
29
29
}
30
+ # To use the X-Pool header for purging varnish during automated deployments, make sure the X-Pool header
31
+ # has been added to the response in your backend server config. This is used, for example, by the
32
+ # capistrano-magento2 gem for purging old content from varnish during it's deploy routine.
30
33
if (!req.http.X-Magento-Tags-Pattern && !req.http.X-Pool ) {
31
34
return (synth (400, "X-Magento-Tags-Pattern or X-Pool header required"));
32
35
}
You can’t perform that action at this time.
0 commit comments