filters\PageCache $cache

$cache public property The cache object or the application component ID of the cache object. After the PageCache object is created, if you want to change this property, you should only assign it with a cache object. Starting from version 2.0.2, this can also be a configuration array for creating the object. public yii\caching\Cache|array|string $cache = 'cache'

filters\HttpCache validateCache()

validateCache() protected method Validates if the HTTP cache contains valid content. If both Last-Modified and ETag are null, returns false. protected boolean validateCache ( $lastModified, $etag )$lastModified integer The calculated Last-Modified value in terms of a UNIX timestamp. If null, the Last-Modified header will not be validated. $etag string The calculated ETag value. If null, the ETag header will not be validated. return boolean Whether the HTTP cache is still valid.

filters\HttpCache sendCacheControlHeader()

sendCacheControlHeader() protected method Sends the cache control header to the client See also $cacheControlHeader. protected void sendCacheControlHeader ( )

filters\HttpCache generateEtag()

generateEtag() protected method Generates an ETag from the given seed string. protected string generateEtag ( $seed )$seed string Seed for the ETag return string The generated ETag

filters\HttpCache beforeAction()

beforeAction() public method This method is invoked right before an action is to be executed (after all possible filters.) You may override this method to do last-minute preparation for the action. public boolean beforeAction ( $action )$action yii\base\Action The action to be executed. return boolean Whether the action should continue to be executed.

filters\HttpCache $weakEtag

$weakEtag public property (available since version 2.0.8) Whether to generate weak ETags. Weak ETags should be used if the content should be considered semantically equivalent, but not byte-equal. See also http://tools.ietf.org/html/rfc7232#section-2.3. public boolean $weakEtag = false

filters\HttpCache $sessionCacheLimiter

$sessionCacheLimiter public property The name of the cache limiter to be set when session_cache_limiter() is called. The default value is an empty string, meaning turning off automatic sending of cache headers entirely. You may set this property to be public, private, private_no_expire, and nocache. Please refer to session_cache_limiter() for detailed explanation of these values. If this property is null, then session_cache_limiter() will not be called. As a result, PHP will send headers ac

filters\HttpCache $params

$params public property Additional parameters that should be passed to the $lastModified and $etagSeed callbacks. public mixed $params = null

filters\HttpCache $lastModified

$lastModified public property A PHP callback that returns the UNIX timestamp of the last modification time. The callback's signature should be: function ($action, $params) where $action is the yii\base\Action object that this filter is currently handling; $params takes the value of $params. The callback should return a UNIX timestamp. See also http://tools.ietf.org/html/rfc7232#section-2.2. public callable $lastModified = null

filters\HttpCache $etagSeed

$etagSeed public property A PHP callback that generates the ETag seed string. The callback's signature should be: function ($action, $params) where $action is the yii\base\Action object that this filter is currently handling; $params takes the value of $params. The callback should return a string serving as the seed for generating an ETag. public callable $etagSeed = null