如何将 Google Cloud 运行 服务放在 Cloud CDN 后面?
How to put a Google Cloud Run service behind Cloud CDN?
我想在 Google 云 运行 服务前面放置一个 CDN,以便缓存一些响应。
现在 Cloud CDN 似乎需要一个 Google 负载均衡器,它们不能指向 Google Cloud 运行 服务(https://github.com/ahmetb/cloud-run-faq/tree/e7a0fc43d3054456613c09e073db289ddf76dd33#how-can-i-configure-cdn-for-cloud-run-services)。
还有其他方法吗?
[更新]
将 Cloud CDN 与 Cloud 运行 结合使用
此外,通过添加 Cache-Control
header and via a rewrite rule in firebase.json
(via the unofficial Cloud Run FAQ).
通过 Firebase 应用提供负载均衡器也是可能的。
我想在 Google 云 运行 服务前面放置一个 CDN,以便缓存一些响应。
现在 Cloud CDN 似乎需要一个 Google 负载均衡器,它们不能指向 Google Cloud 运行 服务(https://github.com/ahmetb/cloud-run-faq/tree/e7a0fc43d3054456613c09e073db289ddf76dd33#how-can-i-configure-cdn-for-cloud-run-services)。
还有其他方法吗?
[更新]
将 Cloud CDN 与 Cloud 运行 结合使用此外,通过添加 Cache-Control
header and via a rewrite rule in firebase.json
(via the unofficial Cloud Run FAQ).