For preventing the browser cache I followed this How to control web page caching, across all browsers?.
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
response.setHeader("Pragma", "no-cache"); // HTTP 1.0.
response.setDateHeader("Expires", 0);
This is working fine with Google Chrome, but the problem is with Firefox. After adding above mentioned headers firefox is still caching my content.
Is there any way to stop Firefox from caching my content?
All the cached content is stored in plain text only. How can I force the browser to encrypt the content before caching it?
I observed that some other sites' cache is not stored as plain text. Even the JavaScript (js) file is in encrypted format (in cache).
Below image show the headers received in the response.