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.

doc_Yii
2016-10-30 17:02:40
Comments
Leave a Comment

Please login to continue.