是否可以在 App Engine 标准环境中使用 Google Cloud CDN?

Is it possible to use Google Cloud CDN with App Engine Standard environment?

我看不到将我的应用引擎后端与 Cloud CDN 连接的方法。似乎只有直接使用 Compute Engine 时才可用。

不,目前不可能。目前,Google Cloud CDN 只能用于提供来自 Cloud Storage 存储桶、Compute Engine 实例组和 Compute Engine 网络端点组的内容。我同意支持 App Engine 标准也很有意义!

更新

目前处于测试阶段 Serverless NEGs (Network Endpoint Groups) which will allow you to use App Engine behind a HTTP(S) Load balancer 并为您提供包括 CDN

在内的所有功能

原创

是的,只要返回可缓存的响应,App Engine 就会通过 Google Cloud CDN 提供内容。

尝试将 Cache-Control header 设置为 max-age=86400, public 并确保 Set-Cookie header 不会随响应一起发送