ios - How to define cache control for AWSS3TransferUtility -


i'm struggling define cache control when uploading images via awss3transferutility (aws-ios-sdk v2.4.x).

my simplified usage like:

let utility = awss3transferutility.s3transferutilityforkey("key") let data = uiimagejpegrepresentation(image, 0.9)!  let expression = awss3transferutilityuploadexpression() expression.progressblock = { (task, progress) in     onprogress?(progress: progress.fractioncompleted) }  transferutility.uploaddata(data, bucket: globalconfig.awss3defaultbucket, key: "image.jpeg", contenttype: "image/jpeg", expression: expression) { (task, error) in     // ... } 

my current focus on expression, calls expression.setvalue("max-age=3600", forrequestparameter: "cache-control") didn't work.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -