AlinsRan commented on issue #8239:
URL: https://github.com/apache/apisix/issues/8239#issuecomment-1304968093

   > `proxy-rewrite` plugin support to add headers, read: 
https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/proxy-rewrite.md#attributes
   
   If the header exists, it will be overwritten.
   for example:
   1. current: `Cache-Control: max-age`
   2.  add plugin
   ```json
   {
       "proxy-rewrite": {
           "headers": {
               "add": {
                   "Cache-Control": "must-revalidate",
               }
           }
       }
   }
   ```
   3. result: `Cache-Control: max-age, must-revalidate`


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to