欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

关于 SAP Spartacus SSR 服务器返回的响应是否应该被缓存的问题

发布时间:2023/12/19 编程问答 34 豆豆
生活随笔 收集整理的这篇文章主要介绍了 关于 SAP Spartacus SSR 服务器返回的响应是否应该被缓存的问题 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

分 SSR 和 CSR 两种情况进行讨论。

when a page is CSR fallback, the CSR app is served with the Cache-Control:no-store header to ensure it is not cached by the caching layer.

when a page is CSR fallback, the CSR app is served with the Cache-Control:no-store header to ensure it is not cached by the caching layer.

On the other hand, if a page request is served in SSR mode, the response returned by SSR server could be cached in CDN. In this case, the response does not have Cache-Control: no-store in the header.

Cache-Control: no-store is only there in CSR fallback case.

更多Jerry的原创文章,尽在:“汪子熙”:

总结

以上是生活随笔为你收集整理的关于 SAP Spartacus SSR 服务器返回的响应是否应该被缓存的问题的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。