fix: update browser cache handling in website proxy service#11762
fix: update browser cache handling in website proxy service#11762zhengkunwang223 merged 2 commits into1Panel-dev:dev-v2from
Conversation
- Adjusted cache time condition to allow for negative values, introducing a no-cache option. - Updated TypeScript interface to specify browser cache options as 'enable', 'disable', or 'noModify' for better clarity.
…ite proxy service - Removed unused import statements for better code clarity. - Added detailed comments to clarify the behavior of the cache time settings in the OperateProxy function.
|
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 |
…ev#11762) * fix: update browser cache handling in website proxy service - Adjusted cache time condition to allow for negative values, introducing a no-cache option. - Updated TypeScript interface to specify browser cache options as 'enable', 'disable', or 'noModify' for better clarity. * refactor: clean up imports and enhance browser cache comments in website proxy service - Removed unused import statements for better code clarity. - Added detailed comments to clarify the behavior of the cache time settings in the OperateProxy function.
What this PR does / why we need it?
修复某个pr导致的浏览器缓存参数不符合原有预期情况

浏览器缓存选择禁用会导致cache -1
Summary of your change
修复 浏览器缓存 不修改缓存头/禁用缓存(重写no-cache)/ 写入缓存的三个模式
Please indicate you've done the following: