W3cubDocs

/Symfony 3.0

Symfony\Component\HttpKernel\HttpCache\ResponseCacheStrategyInterface

interface ResponseCacheStrategyInterface

ResponseCacheStrategyInterface implementations know how to compute the Response cache HTTP header based on the different response cache headers.

Methods

add(Response $response)

Adds a Response.

update(Response $response)

Updates the Response HTTP headers based on the embedded Responses.

Details

public add(Response $response)

Adds a Response.

Parameters

Response $response

public update(Response $response)

Updates the Response HTTP headers based on the embedded Responses.

Parameters

Response $response