Example #1
0
 /**
  * Validates that a cached data is still valid and adjust the response
  * appropriately or begin deferred processing.
  *
  * @return void
  */
 protected function cacheValidation()
 {
     if ($this->request->isSafeMethod() && ($this->matchEntityTags() || $this->matchModified())) {
         $this->response->notModified();
     } else {
         $this->response->cacheMissed();
     }
 }