andrewrk / node-s3-client

high level amazon s3 client for node.js
MIT License
1k stars 303 forks source link

Unexpected key 'MetaUploader' found in params, How to invalidate a file (remove from cache)? #195

Open playground opened 6 years ago

playground commented 6 years ago

Would like to clear file from cache when uploading a new version of the file. How to? Still searching for documentation.

I have tried MetaUploader: s3File

But keep getting UnexpectedParameter: Unexpected key 'MetaUploader' found in params

KaKi87 commented 3 years ago

+1, any news on this ?

How to invalidate a file (remove from cache)?

If you mean creating an invalidation from CloudFront, I'm looking for it too.

I found something in Amazon's docs but I'm wondering if this lib or another already implements that feature so I wouldn't have to send requests and parse XML stuff myself.

https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateInvalidation.html

Thanks !