-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
I need add in the Cybernox\AmazonWebServicesBundle\StreamWrapper\StreamWrapper file the header parameters.
In the function buildHeadersForContent I need adde the following header:
$headers['Cache-Control'] = "max-age=2592000";
private function buildHeadersForContent($content)
{
$path = tempnam(sys_get_temp_dir(), 's3_mime_type');
file_put_contents($path, $content);
$headers = array();
//My custom header
$headers['Cache-Control'] = "max-age=2592000";
if($this->isFileGzipped($path)){
$headers['Content-Encoding'] = "gzip";
}
unlink($path);
return $headers;
}
How I can do this without modifying the bundle? Is there any option?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels