Skip to content

Commit 3192cbf

Browse files
committed
ACP2E-4324: [CLOUD] The Fastly cache is not working after we upgrade to 2.4.8
1 parent 2bc8d2b commit 3192cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageCache/Model/App/Response/HttpPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function beforeSendResponse(HttpResponse $subject)
4343

4444
$currentVary = $this->context->getVaryString();
4545
$varyCookie = $this->request->get(HttpResponse::COOKIE_VARY_STRING);
46-
if (isset($varyCookie) && $currentVary !== $varyCookie) {
46+
if (isset($varyCookie) && ($currentVary !== $varyCookie)) {
4747
$subject->setNoCacheHeaders();
4848
}
4949
$subject->sendVary();

0 commit comments

Comments
 (0)