feat: Enhance cache display and setting in proxy configuration#10751
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
…g commented-out code
What this PR does / why we need it?
反向代理的缓存可以设置的相对灵活。目前的设置启用缓存后必须同时启用服务器缓存和浏览器缓存。但是在某些业务情形下,只需要启用其中一种缓存即可。
如只需要浏览器缓存,用于反向代理包含网页的后端项目时,只需要让用户访问含静态资源的路径后,下次访问直接进浏览器缓存即可,而不需要api接口路径也缓存返回数据。如果按照目前的情况,由于浏览器缓存和服务器缓存必须同时启用,所以 对于api 接口来说会进服务器缓存,而服务器缓存是无法单独禁用的。
只需要服务器缓存也是有的,用于反向代理某些公共后端数据或者文件资源,多次请求 openresty 只会请求实际后端一次,进入缓存后,在过期前用户请求均由 openresty 负责。
Summary of your change
界面调整:


Please indicate you've done the following: