# 图片灯箱“下载”链接指向S3存储桶而非CDN

**URL:** https://meta.discourse.org/t/image-lightbox-download-link-pointing-to-s3-bucket-not-cdn/265874
**Category:** Feature
**Created:** [2023 年5 月 23 日 06:27 UTC](https://meta.discourse.org/t/image-lightbox-download-link-pointing-to-s3-bucket-not-cdn/265874 "2023-05-23T06:27:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### 作者： ![decryption](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/decryption/32/120304_2.png) [@decryption](https://meta.discourse.org/u/decryption)
#### 发布日期： [2023 年5 月 23 日 06:27 UTC](https://meta.discourse.org/t/image-lightbox-download-link-pointing-to-s3-bucket-not-cdn/265874/1 "2023-05-23T06:27:37Z")

</div>

注意到当图片灯箱弹出时，有两个选项：“下载”和“原始图片”。

当有人点击“下载”时，图片会直接从 S3/对象存储桶下载。当有人点击“原始图片”时，相同的图片会在浏览器中从 CDN 打开。

想知道这是否是预期的行为？如果是，是否有办法禁用“下载”链接，以便人们不直接访问昂贵的 S3 存储而使用 CDN，或者将“下载”链接更改为指向 CDN 上的原始上传文件？
