How to clear cache in IE browser ?

SEKAR RAJ
0

 

In IE (Internet Explorer) browser, Form values are not changing dynamically due to the cache issue.

Realtime Scenario :


Form values are rendering dynamically after clearing the cache in google chrome and firebox browsers but IE is not able to render the values dynamically. 


Solution :


Initially, I tried with meta tag comments, and it's not working as expected.so I used the following simple code and it started working. 


Use it for MEAN or FULL Stack applications,


function(req,res){ // function to clear the cache
res.header('Cache-Control', 'private, no-cache, no-store, must-revalidate'); // Add header
res.header('Expires', '-1');
res.header('Pragma', 'no-cache');

}


Post a Comment

0Comments

Post a Comment (0)