Fastly Magento2 serves cached pages during maintenance mode even for whitelisted IPs

With Fastly caching a Magento 2 store, enabling Magento maintenance mode did not stop Fastly from serving cached pages: visitors (including the whitelisted admin IP) still received cached content, and there was no out-of-the-box way to let selected IPs bypass the cache during maintenance. A community member documented a workaround using an Edge ACL (maintallowlist) plus an Edge Dictionary flag (allowsuperusersduring_maint) checked in a custom VCL snippet, but it required hand-rolled config.

The proper fix landed in the extension via PR #256: Fastly's Magento2 module now handles maintenance mode natively so whitelisted admin IPs bypass the cache during maintenance instead of being served stale pages. Upgrade fastly/magento2 to a version containing the #256 fix. If you cannot upgrade, the documented workaround is an Edge ACL of allowed IPs plus an Edge Dictionary key (allowsuperusersduringmaint) checked in a custom maintenance VCL snippet.

Source: https://github.com/fastly/fastly-magento2/issues/183

Source: https://github.com/fastly/fastly-magento2/issues/183