tpyo/amazon-s3-php-class

add header cache control

Closed this issue · 1 comments

How To Add cache control header ??
can i add code..
private $headers = array(
'Host' => '', 'Date' => '', 'Content-MD5' => '', 'Content-Type' => '','Cache-Control' => ''
);

to add header cache-control ??
by mine it's work.. but I need approve you to add this..
what the impact ??

Set custom headers in $requestHeaders param.

S3::putObject(S3::inputFile(SOME_FILE, false), BUCKET, DEST, S3::ACL_PUBLIC_READ, [], ["Cache-Control" => "max-age=864000"]);