Force update Amazon CloudFront on iOS -



Force update Amazon CloudFront on iOS -

i using amazon s3 in conjunction amazon cloudfront, in app have method update s3 object, s3 object using cloudfront, create alter info , reupload under same key -- replacing/updating file/object.

however, cloudfront doesn't seem update along s3 (well does, users don't have day), there way forcefulness cloudfront content update? apparently can invalidate it, there ios sdk way that?

i don't know there way create cloudfront invalidation request via ios sdk. need build own method formulate request against aws api.

i suggest take approach. invalidation requests expensive operations (relative other cloudfront costs). not want leave user able initiate unlimited amount of invalidation requests against cloudfront via application. run against limits number of concurrent invalidation requests can have. best best implement file name versioning scheme can alter file name in programmatic way each revision. reference new url in cloudfront each revision, eliminating need wait cache refresh or perform invalidation. lead more immediate response availability image, invalidation requests may take while process.

please note next cloudfront faq:

q. there limit number of invalidation requests can make? there no limits on total number of files can invalidate; however, each invalidation request create can have maximum of 1,000 files. in addition, can have 3 invalidation requests in progress @ given time. if exceed limit, farther invalidation requests receive error response until 1 of before requests completes. should utilize invalidation in unexpected circumstances; if know beforehand files need removed cache frequently, recommended either implement versioning scheme files and/or set short expiration period.

ios amazon-web-services amazon-s3 amazon-cloudfront

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -