The response headers for our APIs are listed as below.
HTTP/1.1 200 OKCache-Control: no-storeContent-Encoding: gzipContent-Type: application/json;charset=UTF-8Date: Wed, 26 Apr 2017 11:31:15 GMTPragma: no-cacheServer: HelloContent-Length: 127Connection: keep-alive
How to control which header parameters to send and its values?
To control the headers being used both going out of the gateway to the back-end or to the client you can use the Manage Transport Header assertion. Manage Transport Properties/Headers Assertion - CA API Gateway - 9.2 - CA Technologies Documentation
Director, CA Support
Thanks Stephen for the response.
If we use this approach we have to implement it in all the APIs. Is there a way to configure at Gateway level which will be applicable to all APIs?
Global Policy Fragments will allow you to perform this action on all API's.
It's again a coding. I believe there should be some configuration at the server level to define default response headers.
I see your point. What are currently some of the road blocks with using the Global Policy Fragments vs the recommendation you are looking for. Currently I'm not aware of any CWP's to add/modify response headers.
Found the below doc from CA Site which addresses the Exact issue you are referring to. Have a look.
How to change the Server Header from "Apache-Coyote/1.1" with the CA API Management Gateway.
Thanks Neha, this resolved my requirement.
This way we don't have to touch any code.