Skip to content

Commit 40e494c

Browse files
committed
chore: resolve commments
1 parent cddec1b commit 40e494c

File tree

2 files changed

+3
-0
lines changed
  • src/pages
    • [platform]/build-a-backend/storage/download-files
    • gen1/[platform]/build-a-backend/storage/download

2 files changed

+3
-0
lines changed

src/pages/[platform]/build-a-backend/storage/download-files/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,5 +1240,7 @@ Option | Type | Default | Description |
12401240
## Frequently Asked Questions
12411241

12421242
- [Image compression](https://github.com/aws-amplify/amplify-js/issues/6081) or CloudFront CDN caching for your S3 buckets is not yet possible.
1243+
- `downloadData` does not provide a cache control option and it replies on runtime HTTP caching behavior. If you need to bypass the cache, you can use the `getUrl` API to create a presigned URL for downloading the file.
1244+
- `downloadData` does not support S3 object versioning, it always downloads the latest version.
12431245

12441246
</InlineFilter>

src/pages/gen1/[platform]/build-a-backend/storage/download/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,5 +368,6 @@ Users can run into unexpected issues, so we are giving you advance notice in doc
368368

369369
- [Image compression](https://github.com/aws-amplify/amplify-js/issues/6081) or CloudFront CDN caching for your S3 buckets is not yet possible.
370370
- There is currently [no API for getting the identityId of other users](https://github.com/aws-amplify/amplify-js/issues/5177); you have to retrieve this from elsewhere before calling `downloadData`.
371+
- `downloadData` does not provide a cache control option and it replies on runtime HTTP caching behavior. If you need to bypass the cache, you can use the `getUrl` API to create a presigned URL for downloading the file.
371372

372373
</InlineFilter>

0 commit comments

Comments
 (0)