Usenocacheheaders doesn't return 'no-store' and 'mustrevalidate' values
We have Usenocacheheaders set to 'true' we are getting values returned properly in one of the environments as 'no-cache,no-store,mustrevalidate' however in a higher environment we see these header values are not returned in response headers by Pega. Due to this issue one of the important functionality of our application (i.e. SSO) is not working.
We have compared the prconfigs,web.xmls and server.xmls across the environments but couldn't find any difference.
Please assist us in isolating the root cause for this behavior with Pega server.
I hope you are expecting the output like as follows:
Cache-Control:no-cache, no-store, must-revalidate
Pega will set the Cache-Control to above values if the value of Usenocacheheaders is set to true and content type of response is either start with "test/" or "application/json". Please let us know if after these conditions also, you are not getting the proper response header from Pega.
Are you able to bypass the proxy, web, loadbalancer servers and go directly to the machine directly? If so, try a request and see if you get the results you expect. If so, then there is likely something changing the response header in those servers. Also, are you not getting the header back at all, or is it only containing the 'no-cache' value? How are you specifying the value of the setting UseNoCacheHeaders - in a DSS or prconfig.xml entry?
I am not sure which version you are running, but I would suggest that you open up an SR so we can get some fiddler traces to see what is going on and why you are not getting the correct headers. Once you open an SR, please reply here with the SR number.