/**
  * Apply appropriate headers to the request
  *
  * @return void
  */
 public function setHeaders()
 {
     $expire_in = getenv('CACHE_EXPIRATION_HOURS') ?: $this->cache_expiration_hours;
     // Set time for cache expires. Default to 120 days (2880 hours)
     $expires = $this->getRfcCompliantDate(Carbon::now(), $expire_in);
     $last_modified = $this->getRfcCompliantDate(Carbon::now(), 0);
     $max_age_seconds = $expire_in * 60 * 60;
     header("Last-Modified: {$last_modified}");
     header("Cache-Control: max-age={$max_age_seconds}");
     header("Expires: {$expires}");
     // File specific headers
     header('Content-Type: ' . $this->file->getMimeType());
 }