mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 08:27:03 +03:00
Resolve #234
This commit is contained in:
parent
3fd4cd5d33
commit
c8104739c1
1 changed files with 1 additions and 1 deletions
|
|
@ -357,7 +357,7 @@ class ServiceActions
|
||||||
&& \str_starts_with($oResponse->getHeader('content-type'), 'image/')
|
&& \str_starts_with($oResponse->getHeader('content-type'), 'image/')
|
||||||
) {
|
) {
|
||||||
$this->oActions->cacheByKey($sData);
|
$this->oActions->cacheByKey($sData);
|
||||||
\header('Content-Type: '.$sContentType);
|
\header('Content-Type: ' . $oResponse->getHeader('content-type'));
|
||||||
\header('Cache-Control: public');
|
\header('Cache-Control: public');
|
||||||
\header('Expires: '.\gmdate('D, j M Y H:i:s', 2592000 + \time()).' UTC');
|
\header('Expires: '.\gmdate('D, j M Y H:i:s', 2592000 + \time()).' UTC');
|
||||||
\rewind($tmp);
|
\rewind($tmp);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue