Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
Virtusa IT Consulting
AE
Last activity: 12 Jul 2019 10:50 EDT
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.
Thanks,
Habeeb Baig
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689966000/ede3ed07-adac-4f99-9c8c-3887cdbab962.jpg?itok=pQG2hsix)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689966000/ede3ed07-adac-4f99-9c8c-3887cdbab962.jpg?itok=pQG2hsix)
Pegasystems Inc.
IN
Hi Habeeb,
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.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
Virtusa IT Consulting
AE
Hi Anuj,
Thanks replying!
Yes I am expecting the same output, however it is not behaving as expected that 'must-revalidate' is not showing on the response header.
Could this be issue for which we might have to raise an SR? Kindly confirm this at the earliest so that we can avoid the deferral as it is impacting it in Prod env.
Thanks,
Habeeb Baig
-
Benjamin Hui shashikalavathi palle Raghavender Reddy Lankapothu
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689966000/ede3ed07-adac-4f99-9c8c-3887cdbab962.jpg?itok=pQG2hsix)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689966000/ede3ed07-adac-4f99-9c8c-3887cdbab962.jpg?itok=pQG2hsix)
Pegasystems Inc.
IN
Sharing the fiddler log will not be possible in the PSC portal as it will have your internal IP address. Please raise a SR with working and non-working fiddler trace.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
You should check if you have any web server / load balancer rules that would be altering that header Cache-Control. Those can sometimes override settings provided by Pega.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
Virtusa IT Consulting
AE
Is it possible that proxy server can intervene and override the Pega response headers? BTW we do have a proxy server.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
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?
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
Virtusa IT Consulting
AE
I will try to respond each of your queries. Please find my responses as below,
- No we are not able to Bypass the proxy, it is required. So I presume the suggestion you have made latter to the first question doesn't apply in our case.
- Yes, we are not getting the header 'Must-revalidate' back at all, but we get 'no-cache' and 'no-store'
- UseNoCacheHeaders was set to 'true' when we replicated the aforementioned issue. And we are using DSS with no prconfig.xml entry.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
Hi Habeeb,
Starting 7.1.7, the following setting: add prconfig/HTTP/UseNoCacheHeaders/default as a DSS setting with a value of true and owning ruleset as Pega-Engine) provides the following headers in 7.1.7:
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
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.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
Virtusa IT Consulting
AE
Thanks Brad! I will test one more time by resetting the Cache control flag to true. If it still doesn't work then will proceed with an SR as you and Anuj have suggested.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
Virtusa IT Consulting
AE
Here is the SR number SR-C55365
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
Virtusa IT Consulting
AE
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-07/f7f35052-5e7d-4ed9-ada9-87594f1d3c63.png?itok=bz3Ms_gZ)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-07/f7f35052-5e7d-4ed9-ada9-87594f1d3c63.png?itok=bz3Ms_gZ)
Pegasystems Inc.
US
Upon reviewing the associated Support Request I see that that was resolved. @ManishB2450 could you share your resolution so that it may help others in the future?
Thanks!
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Wolters Kluwer
IN
@ManishB2450 @BaigHabeeb @MarissaRogers
Hi Team, We are facing same issue in v8.1 when content type is text/css or text/javascript. Can some one please share the resolution details for this SR?
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/acf9b3f6-41e7-4ef2-9e55-8da39714b54f.jpg?itok=JYQYUbWS)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689951000/acf9b3f6-41e7-4ef2-9e55-8da39714b54f.jpg?itok=JYQYUbWS)
Pegasystems Inc.
IN
Hi Ravi,
From the SR notes, I could determine that root cause was an incorrect version of EAR deployed. If this does not help you, please create a new post with the detailed use case and supporting artifacts.
Regards,
-
Bruno Oliveira