* finish task #6177.
This commit is contained in:
@@ -502,10 +502,10 @@ class file extends control
|
||||
$mime = in_array($file->extension, $this->config->file->imageExtensions) ? "image/{$file->extension}" : $this->config->file->mimes['default'];
|
||||
header("Content-type: $mime");
|
||||
|
||||
$cacheMaxAge = $this->config->cookieLife - time();
|
||||
$cacheMaxAge = 10 * 365 * 24 * 3600;
|
||||
header("Cache-Control: private");
|
||||
header("Pragma: cache");
|
||||
header("Expires:" . gmdate("D, d M Y H:i:s", $this->config->cookieLife) . " GMT");
|
||||
header("Expires:" . gmdate("D, d M Y H:i:s", time() + $cacheMaxAge) . " GMT");
|
||||
header("Cache-Control: max-age=$cacheMaxAge");
|
||||
|
||||
$handle = fopen($file->realPath, "r");
|
||||
|
||||
Reference in New Issue
Block a user