Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
HttpPlugin Class Reference

Public Member Functions

 beforeSendResponse (\Magento\Framework\App\Response\Http $subject)
 

Detailed Description

HTTP response plugin for frontend.

Definition at line 12 of file HttpPlugin.php.

Member Function Documentation

◆ beforeSendResponse()

beforeSendResponse ( \Magento\Framework\App\Response\Http  $subject)

Set proper value of X-Magento-Vary cookie.

Parameters
\Magento\Framework\App\Response\Http$subject
Returns
void

Definition at line 20 of file HttpPlugin.php.

21  {
22  if ($subject instanceof \Magento\Framework\App\PageCache\NotCacheableInterface) {
23  return;
24  }
25  $subject->sendVary();
26  }

The documentation for this class was generated from the following file: