且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-09-07 09:50:28

分 s-s-r 和 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.


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


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 s-s-r mode, the response returned by s-s-r 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.

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


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