You are here

public function SurrogateInterface::addSurrogateControl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/HttpCache/SurrogateInterface.php \Symfony\Component\HttpKernel\HttpCache\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.

Parameters

Response $response A Response instance:

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 ESI.
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 56

Class

SurrogateInterface

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

public function addSurrogateControl(Response $response);