mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Hopefully fixes avatar caching for CGI installs.
git-svn-id: file:///svn/phpbb/trunk@8281 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -85,6 +85,7 @@
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>[Change] Validate birthdays (Bug #15004)</li>
|
<li>[Change] Validate birthdays (Bug #15004)</li>
|
||||||
|
<li>[Fix] Allow correct avatar caching for CGI installations. (thanks wildbill)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<a name="v30rc8"></a><h3>1.i. Changes since 3.0.RC8</h3>
|
<a name="v30rc8"></a><h3>1.i. Changes since 3.0.RC8</h3>
|
||||||
|
@@ -68,6 +68,14 @@ if (isset($_GET['avatar']))
|
|||||||
if ($last_load !== false && $last_load <= $stamp)
|
if ($last_load !== false && $last_load <= $stamp)
|
||||||
{
|
{
|
||||||
header('Not Modified', true, 304);
|
header('Not Modified', true, 304);
|
||||||
|
if (@php_sapi_name() == 'CGI')
|
||||||
|
{
|
||||||
|
header('Status: 304 Not Modified', true, 304);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
header('HTTP/1.0 304 Not Modified', true, 304);
|
||||||
|
}
|
||||||
// seems that we need those too ... browsers
|
// seems that we need those too ... browsers
|
||||||
header('Pragma: public');
|
header('Pragma: public');
|
||||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 31536000));
|
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 31536000));
|
||||||
|
Reference in New Issue
Block a user