diff --git a/Controller/Feed/Export.php b/Controller/Feed/Export.php index 6aa37e5..8970e30 100644 --- a/Controller/Feed/Export.php +++ b/Controller/Feed/Export.php @@ -114,6 +114,17 @@ public function execute(): Response $store = $this->storeManager->getStore($storeId); } + // Discard any output already buffered by other modules (e.g. Stape GTM setting + // cookies) before we start streaming the XML feed. Without this, buffered garbage + // can be flushed to the client ahead of the export, $this->log, $this->driver, $store, $request->getParam('type')))->__toString();