I'm trying to set the read_cache_expiry_seconds option to some user uploads, but the files seems to be cached by 3600 seconds (default) instead the value I want.
The resource context I'm adding is the following:
$_defaultMetadata = [
'gs' => [
'enable_cache' => true,
'enable_optimistic_cache' => false,
'read_cache_expiry_seconds' => 60,
'Cache-Control' => 'public, max-age=60'
]
];
$ctx = stream_context_create($_defaultMetadata);
file_put_contents( 'gs://' . $bucketPath, $data, 0 , $ctx);
Any idea why this context is not working ?