【发布时间】:2021-07-11 18:03:12
【问题描述】:
我在函数中使用 request.hostname 为相同的 url.pathname 提供不同的内容。如果我设置Cache-Control缓存CDN中的内容,是通过url.pathname缓存还是request.hostname+url.pathname缓存?即,由于缓存,它会在不同域中提供相同的内容吗?
【问题讨论】:
标签: firebase google-cloud-functions firebase-hosting
我在函数中使用 request.hostname 为相同的 url.pathname 提供不同的内容。如果我设置Cache-Control缓存CDN中的内容,是通过url.pathname缓存还是request.hostname+url.pathname缓存?即,由于缓存,它会在不同域中提供相同的内容吗?
【问题讨论】:
标签: firebase google-cloud-functions firebase-hosting
缓存特定于完整的 URL,而不仅仅是路径。
【讨论】: