HttpCache\EsiResponseCacheStrategy (Component\HttpKernel)

Symfony\Component\HttpKernel\HttpCache\EsiResponseCacheStrategy

class EsiResponseCacheStrategy extends ResponseCacheStrategy implements EsiResponseCacheStrategyInterface

EsiResponseCacheStrategy knows how to compute the Response cache HTTP header based on the different ESI response cache headers.

This implementation changes the master response TTL to the smallest TTL received or force validation if one of the ESI has validation cache strategy.

Methods

add(Response $response)

Adds a Response.

from ResponseCacheStrategy
update(Response $response)

Updates the Response HTTP headers based on the embedded Responses.

from ResponseCacheStrategy

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

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpKernel/HttpCache/EsiResponseCacheStrategy.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部