Example #1
0
 /**
  * Returns whether a resource has been modified between two requests.
  *
  * @return bool
  */
 protected function matchModified()
 {
     $lastModified = $this->response->getHeader("Last-Modified");
     $modifiedSince = $this->request->getModifiedSince();
     if ($modifiedSince && $lastModified) {
         return strtotime($modifiedSince) >= strtotime($lastModified);
     }
     return false;
 }