[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/http-kernel/HttpCache/ -> ResponseCacheStrategy.php (summary)

(no description)

File Size: 219 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ResponseCacheStrategy:: (4 methods):
  add()
  update()
  willMakeFinalResponseUncacheable()
  storeRelativeAgeDirective()


Class: ResponseCacheStrategy  - X-Ref

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

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

add(Response $response)   X-Ref
{@inheritdoc}


update(Response $response)   X-Ref
{@inheritdoc}


willMakeFinalResponseUncacheable(Response $response)   X-Ref
RFC2616, Section 13.4.

return: bool

storeRelativeAgeDirective($directive, $value, $age)   X-Ref
Store lowest max-age/s-maxage/expires for the final response.

The response might have been stored in cache a while ago. To keep things comparable,
we have to subtract the age so that the value is normalized for an age of 0.

If the value is lower than the currently stored value, we update the value, to keep a rolling
minimal value of each instruction. If the value is NULL, the directive will not be set on the final response.

param: string   $directive
param: int|null $value
param: int      $age



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1