Пример #1
0
 /**
  * Generate suitable ETag for content
  *
  * This function generates the necessary cache headers for using ETags with dynamic content. You
  * simply have to generate the ETag, pass it in, and the function handles the rest.
  *
  * @param  string $etag ETag to use for this content.
  * @param int $cache_age age in seconds for Cache-control max-age header
  * @return bool   Did we have a match?
  */
 public function generateETagHeader($etag, $cache_age = null)
 {
     if (empty($this->response)) {
         return false;
     }
     return $this->response->generateETagHeader($etag, $cache_age);
 }