diff options
| author | Jakub Senko <jakubsenko@gmail.com> | 2014-09-17 10:52:19 +0200 |
|---|---|---|
| committer | Jakub Senko <jakubsenko@gmail.com> | 2014-09-17 10:52:19 +0200 |
| commit | 33b20636804f00786e2a2aabf4b5155ac78269f6 (patch) | |
| tree | 034f0e3a2a7f05ee565f336ce354d0a455380c2a /phpBB/includes | |
| parent | 20903c0a9b0bc2df65feca467a2e318e700a9b8a (diff) | |
| download | forums-33b20636804f00786e2a2aabf4b5155ac78269f6.tar forums-33b20636804f00786e2a2aabf4b5155ac78269f6.tar.gz forums-33b20636804f00786e2a2aabf4b5155ac78269f6.tar.bz2 forums-33b20636804f00786e2a2aabf4b5155ac78269f6.tar.xz forums-33b20636804f00786e2a2aabf4b5155ac78269f6.zip | |
[ticket/13044] Correct Expires headers
PHPBB3-13044
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/functions.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/functions_acp.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/functions_download.php | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 7dfaea6f48..3387943701 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -5062,7 +5062,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id = // application/xhtml+xml not used because of IE 'Content-type' => 'text/html; charset=UTF-8', 'Cache-Control' => 'private, no-cache="set-cookie"', - 'Expires' => '0', + 'Expires' => gmdate('D, d M Y H:i:s \G\M\T', time()), 'Pragma' => 'no-cache', ); if (!empty($user->data['is_bot'])) diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php index d9dc11239c..63d13fb37c 100644 --- a/phpBB/includes/functions_acp.php +++ b/phpBB/includes/functions_acp.php @@ -112,7 +112,7 @@ function adm_page_header($page_title) // application/xhtml+xml not used because of IE 'Content-type' => 'text/html; charset=UTF-8', 'Cache-Control' => 'private, no-cache="set-cookie"', - 'Expires' => '0', + 'Expires' => gmdate('D, d M Y H:i:s \G\M\T', time()), 'Pragma' => 'no-cache', ); diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index 4ff3994f4c..93f3951ad8 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -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 |
