From b1495bd54aee2a865ec4f39076f01a3d9b4ff337 Mon Sep 17 00:00:00 2001 From: rubencm Date: Tue, 28 May 2019 02:41:08 +0000 Subject: [PATCH] [ticket/14285] Use private cache-control for atttachments PHPBB3-14285 --- phpBB/phpbb/storage/controller/attachment.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/phpBB/phpbb/storage/controller/attachment.php b/phpBB/phpbb/storage/controller/attachment.php index cbf798e953..c2b027d147 100644 --- a/phpBB/phpbb/storage/controller/attachment.php +++ b/phpBB/phpbb/storage/controller/attachment.php @@ -271,6 +271,16 @@ class attachment extends controller return parent::handle($attachment['physical_filename']); } + /** + * {@inheritdoc} + */ + protected function prepare($file) + { + parent::prepare($file); + + $this->response->setPivate(); + } + /** * Handles authentication when downloading attachments from a post or topic *