amazon s3 - Filepicker.io: Setting cache-control headers when storing files to S3 -
i'm using filepicker.io upload files s3 bucket, works great, how people setting cache-control headers once gets there? apparently there no support configuring headers via filepicker.io api , i'm trying figure out best alternative is.
i looked @ cloudfront configure custom ttl, without cache-control headers being set didn't seem browsers cache things (there ominous warning being browser dependent).
origin not add cache-control max-age directive
- cloudfront caching—objects cached greater of 24 hours or cloudfront minimum ttl.
- browser caching— depends on browser.
or need make additional calls server set headers?
you can't set cache cache-control headers while storing in s3 via filepicker.
but can set on browser side when filepicker file downloaded. add
{cache: true}
attribute filepicker function.
Comments
Post a Comment