Small fixes

This commit is contained in:
RainLoop Team 2014-10-02 00:19:03 +04:00
parent 60b449b9f8
commit 195d13dc0d
6 changed files with 64 additions and 32 deletions

View file

@ -6414,14 +6414,9 @@ class Actions
$bResult = false;
if (!empty($sKey) && ($bForce || $this->Config()->Get('cache', 'enable', true) && $this->Config()->Get('cache', 'http', true)))
{
$iLast = 1382478804;
$iExpires = 2002478804;
header('Cache-Control: private', true);
header('ETag: '.\md5('Etag:'.\md5($sKey.\md5($this->Config()->Get('cache', 'index', '')))), true);
header('Last-Modified: '.\gmdate('D, d M Y H:i:s', $iLast).' UTC', true);
header('Expires: '.\gmdate('D, j M Y H:i:s', $iExpires).' UTC', true);
header('Connection: close');
$this->oHttp->ServerUseCache(
\md5('Etag:'.\md5($sKey.\md5($this->Config()->Get('cache', 'index', '')))),
1382478804, 2002478804);
$bResult = true;
}