myWsq opened a new issue #3373:
URL: https://github.com/apache/apisix/issues/3373


   ### Issue description
   
   The proxy cache plugin overrides the Cache Control in the upstream header, 
even if the plugin is not used in the route.
   
   
https://github.com/apache/apisix/blob/e3601e6876e13a44fa8102fa19a41b4bc1a080e2/apisix/cli/ngx_tpl.lua#L511-L536
   
   Disabling the plugin in `config.yml` solves this problem, but some routes 
need to enable the plugin. How should I preserve the Cache Control in the 
upstream header with the proxy cache plugin globally enabled?
   
   ### Environment
   
   * apisix version: 2.2
   * OS:  Linux 7cc563f53b08 4.19.121-linuxkit #1 SMP Tue Dec 1 17:50:32 UTC 
2020 x86_64 Linux
   * OpenResty / Nginx version:  nginx version: openresty/1.19.3.1
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to