-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
src/module-elasticsuite-tracker/Model/App/Response/Http/TrackerResponse.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade this module to newer versions in the future. | ||
* | ||
* @category Smile | ||
* @package Smile\ElasticsuiteTracker | ||
* @author Richard BAYET <[email protected]> | ||
* @copyright 2025 Smile | ||
* @license Open Software License ("OSL") v. 3.0 | ||
*/ | ||
|
||
namespace Smile\ElasticsuiteTracker\Model\App\Response\Http; | ||
|
||
use Magento\Framework\App\PageCache\NotCacheableInterface; | ||
use Magento\Framework\App\Response\Http; | ||
|
||
/** | ||
* Custom Http Response object for the elasticsuite/tracker/hit legacy controller. | ||
* Using this object instead of a classic Http response object | ||
* - prevents \Magento\PageCache\Model\App\Response\HttpPlugin from being triggered in the first place | ||
* - and if it was triggered, makes sure that the sendVary method is not called | ||
* - which would result in the loss of the Vary cookie if the user is logged in. | ||
* | ||
* @category Smile | ||
* @package Smile\ElasticsuiteTracker | ||
*/ | ||
class TrackerResponse extends Http implements NotCacheableInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters