Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SurrogateInterface.php

function SurrogateInterface::addSurrogateControl

Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.

This method only adds an Surrogate HTTP header if the Response has some Surrogate tags.

2 methods override SurrogateInterface::addSurrogateControl()
Esi::addSurrogateControl in vendor/symfony/http-kernel/HttpCache/Esi.php
Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.
Ssi::addSurrogateControl in vendor/symfony/http-kernel/HttpCache/Ssi.php
Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.

File

vendor/symfony/http-kernel/HttpCache/SurrogateInterface.php, line 44

Class

SurrogateInterface

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function addSurrogateControl(Response $response) : void;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal