I am trying to set the cache control to no-cache on S3 uploads but the header is not being set. I tried the below in the upload script which didn't work.
request: {
endpoint: "https://",
accessKey: "",
customHeaders: "Cache-Control: no-cache"
},
Then I also tried adding it to the S3 handler php file like this ( added to the bottom)
// Only needed in cross-origin setups
function handlePreflight() {
handleCorsRequest();
header('Access-Control-Allow-Methods: POST');
header('Access-Control-Allow-Headers: Content-Type');
header('Access-Control-Allow-Headers: Cache-Control');
plus I thenm also added it here
function signRequest() {
header('Content-Type: application/json');
header('Cache-Control: no-cache');
neither by themselves nor or all of them together made the header appear on uploaded file.
So I am not sure what I am doing wrong