mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/14285] Use private cache-control for atttachments
PHPBB3-14285
This commit is contained in:
parent
6f731f0a3e
commit
b1495bd54a
1 changed files with 10 additions and 0 deletions
|
@ -271,6 +271,16 @@ class attachment extends controller
|
||||||
return parent::handle($attachment['physical_filename']);
|
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
|
* Handles authentication when downloading attachments from a post or topic
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue