Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
HttpPlugin.php
Go to the documentation of this file.
1 <?php
8 
13 {
20  public function beforeSendResponse(\Magento\Framework\App\Response\Http $subject)
21  {
22  if ($subject instanceof \Magento\Framework\App\PageCache\NotCacheableInterface) {
23  return;
24  }
25  $subject->sendVary();
26  }
27 }
beforeSendResponse(\Magento\Framework\App\Response\Http $subject)
Definition: HttpPlugin.php:20