diff options
author | Dhruv Goel <dhruv.goel92@gmail.com> | 2014-09-21 11:29:56 +0530 |
---|---|---|
committer | Dhruv Goel <dhruv.goel92@gmail.com> | 2014-09-21 11:29:56 +0530 |
commit | 84e68b3a73183322e970df39b7bd9d1afd37be8a (patch) | |
tree | a7b0703dcbf07e288a1c6dfec45a824a6fc9bb46 /phpBB/includes/functions_download.php | |
parent | b02e579c1ca1256047e14490947852e49ebee6d9 (diff) | |
parent | e59222496a68e644f9d0c6996ba51256f08d11c4 (diff) | |
download | forums-84e68b3a73183322e970df39b7bd9d1afd37be8a.tar forums-84e68b3a73183322e970df39b7bd9d1afd37be8a.tar.gz forums-84e68b3a73183322e970df39b7bd9d1afd37be8a.tar.bz2 forums-84e68b3a73183322e970df39b7bd9d1afd37be8a.tar.xz forums-84e68b3a73183322e970df39b7bd9d1afd37be8a.zip |
Merge pull request #2963 from Senky/ticket/13045
[ticket/13045] Remove Pragma headers
Diffstat (limited to 'phpBB/includes/functions_download.php')
-rw-r--r-- | phpBB/includes/functions_download.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index 3be84299f0..704939b176 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -45,7 +45,7 @@ function send_avatar_to_browser($file, $browser) if ((@file_exists($file_path) && @is_readable($file_path)) && !headers_sent()) { - header('Pragma: public'); + header('Cache-Control: public'); $image_data = @getimagesize($file_path); header('Content-Type: ' . image_type_to_mime_type($image_data[2])); @@ -175,7 +175,7 @@ function send_file_to_browser($attachment, $upload_dir, $category) } // Now the tricky part... let's dance - header('Pragma: public'); + header('Cache-Control: public'); // Send out the Headers. Do not set Content-Disposition to inline please, it is a security measure for users using the Internet Explorer. header('Content-Type: ' . $attachment['mimetype']); @@ -420,7 +420,7 @@ function set_modified_headers($stamp, $browser) { send_status_line(304, 'Not Modified'); // seems that we need those too ... browsers - header('Pragma: public'); + header('Cache-Control: public'); header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT'); return true; } |