mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/13044] Correct Expires headers
PHPBB3-13044
This commit is contained in:
@@ -56,7 +56,7 @@ function send_avatar_to_browser($file, $browser)
|
||||
|
||||
if (strpos(strtolower($browser), 'msie 6.0') !== false)
|
||||
{
|
||||
header('Expires: -1');
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -197,7 +197,7 @@ function send_file_to_browser($attachment, $upload_dir, $category)
|
||||
header('Content-Disposition: attachment; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
|
||||
if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie 6.0') !== false))
|
||||
{
|
||||
header('expires: -1');
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user