diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-06-17 10:20:36 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-06-17 10:20:36 +0200 |
commit | 2a0b38cac0765c6aed00b0162b4fa3c03cc38df0 (patch) | |
tree | c0ddf5b7b3995ea223dd0154aa6e286b50b05197 | |
parent | ca705af91d1849e17a906990159f52d9667a9346 (diff) | |
parent | a614e646d178e4650e742948a4fa9a5dc9fac973 (diff) | |
download | forums-2a0b38cac0765c6aed00b0162b4fa3c03cc38df0.tar forums-2a0b38cac0765c6aed00b0162b4fa3c03cc38df0.tar.gz forums-2a0b38cac0765c6aed00b0162b4fa3c03cc38df0.tar.bz2 forums-2a0b38cac0765c6aed00b0162b4fa3c03cc38df0.tar.xz forums-2a0b38cac0765c6aed00b0162b4fa3c03cc38df0.zip |
Merge pull request #5604 from senky/ticket/15984
[ticket/15984] Use private cache-control
-rw-r--r-- | phpBB/includes/functions_download.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index 7be12baa13..1f409be58c 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -196,7 +196,7 @@ function send_file_to_browser($attachment, $upload_dir, $category) } // Now the tricky part... let's dance - header('Cache-Control: public'); + header('Cache-Control: private'); // 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']); @@ -451,7 +451,7 @@ function set_modified_headers($stamp, $browser) { send_status_line(304, 'Not Modified'); // seems that we need those too ... browsers - header('Cache-Control: public'); + header('Cache-Control: private'); header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT'); return true; } |