Index: vendor/fastly/magento2/Plugin/GraphQl/AfterRenderResult.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/vendor/fastly/magento2/Plugin/GraphQl/AfterRenderResult.php b/vendor/fastly/magento2/Plugin/GraphQl/AfterRenderResult.php --- a/vendor/fastly/magento2/Plugin/GraphQl/AfterRenderResult.php +++ b/vendor/fastly/magento2/Plugin/GraphQl/AfterRenderResult.php (date 1666884224050) @@ -6,7 +6,6 @@ use Fastly\Cdn\Model\Config; use Magento\Framework\App\ResponseInterface; use Magento\Framework\Controller\ResultInterface; -use Magento\GraphQlCache\Model\CacheableQuery; class AfterRenderResult { @@ -15,23 +14,15 @@ */ private $config; - /** - * @var CacheableQuery - */ - private $cacheableQuery; - /** * AfterRenderResult constructor. * * @param Config $config - * @param CacheableQuery $cacheableQuery */ public function __construct( - Config $config, - CacheableQuery $cacheableQuery + Config $config ) { $this->config = $config; - $this->cacheableQuery = $cacheableQuery; } /** @@ -47,9 +38,7 @@ ResultInterface $result, ResponseInterface $response ): ResultInterface { - if ($this->config->isEnabled() - && $this->config->getType() === Config::FASTLY - && $this->cacheableQuery->isCacheable()) { + if ($this->config->isEnabled() && $this->config->getType() === Config::FASTLY) { $header = $response->getHeader('cache-control'); if ($header) {