# 缓存 onebox 图片和/或从主域名提供它们

**URL:** https://meta.discourse.org/t/cache-onebox-images-and-or-serve-them-from-the-main-domain/325769
**Category:** Feature
**Created:** [2024年九月10日 06:29 UTC](https://meta.discourse.org/t/cache-onebox-images-and-or-serve-them-from-the-main-domain/325769 "2024-09-10T06:29:04Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2024年九月11日 05:46 UTC](https://meta.discourse.org/t/cache-onebox-images-and-or-serve-them-from-the-main-domain/325769/11 "2024-09-11T05:46:17Z")

</div>

> [@kuba-orlik](#):
>
> 在 Discourse 中实现合规性很难，因为 Onebox 功能会使浏览器从原始网站获取缩略图，从而产生第三方请求。

正如 @Firepup650 在上面所说，情况完全不是这样，因为 Discourse 会自动下载并提供 Onebox 的图片，这甚至是默认设置。  
你甚至可以通过切换 `block hotlinked media`（阻止热链接媒体）来使其更加严格。

---

_[View the full topic](https://meta.discourse.org/t/cache-onebox-images-and-or-serve-them-from-the-main-domain/325769)._
