Skip to content

Commit 2bd0459

Browse files
ENGCOM-1268: [Forwardport] Replace the existing headers with the no cache headers #14661
- Merge Pull Request #14661 from rostyslav-hymon/magento2:2.3-develop-PR-port-14176 - Merged commits: 1. 9359b43
2 parents d7352dd + 9359b43 commit 2bd0459

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Customer/Controller/Section

1 file changed

+2
-2
lines changed

app/code/Magento/Customer/Controller/Section/Load.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public function execute()
6464
{
6565
/** @var \Magento\Framework\Controller\Result\Json $resultJson */
6666
$resultJson = $this->resultJsonFactory->create();
67-
$resultJson->setHeader('Cache-Control', 'max-age=0, must-revalidate, no-cache, no-store');
68-
$resultJson->setHeader('Pragma', 'no-cache');
67+
$resultJson->setHeader('Cache-Control', 'max-age=0, must-revalidate, no-cache, no-store', true);
68+
$resultJson->setHeader('Pragma', 'no-cache', true);
6969
try {
7070
$sectionNames = $this->getRequest()->getParam('sections');
7171
$sectionNames = $sectionNames ? array_unique(\explode(',', $sectionNames)) : null;

0 commit comments

Comments
 (0)