Skip to content

Commit 719f3cf

Browse files
committed
Add a response header to indicate when site is in maintenance mode. Addresses #637
1 parent eca12e4 commit 719f3cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

etc/vcl_snippets/deliver.vcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
# Add an easy way to see whether custom Fastly VCL has been uploaded
4141
if ( req.http.Fastly-Debug ) {
4242
set resp.http.Fastly-Magento-VCL-Uploaded = "1.2.206";
43+
if (table.lookup(magentomodule_config, "allow_super_users_during_maint", "0") == "1") {
44+
set resp.http.Fastly-Magento-Maintenance-Mode = "on";
45+
}
4346
} else {
4447
remove resp.http.Fastly-Module-Enabled;
4548
remove resp.http.fastly-page-cacheable;

0 commit comments

Comments
 (0)