Log in
Model

HttpPlugin

Magento\PageCache\Model\App\Response\HttpPlugin

What it does

This plugin intercepts HTTP responses in the frontend to manage full page cache variations based on customer context (logged in/out, customer group, etc.).

It ensures that the X-Magento-Vary cookie matches the current context and prevents serving cached content with outdated vary values, which is critical for displaying personalized content correctly.

Public Methods

  • beforeSendResponse()