我希望在所有浏览器中缓存我的网页。在浏览堆栈溢出后,很多网站建议放置如下所示的标题:
response.setHeader("Cache-Control","public");
response.setHeader("Pragma","public");
response.setDateHeader ("Expires", System.currentTimeMillis() + 604800000L);
Even after setting that i am not able to cache my web pages. when i hit back all the values in the textboxes disappears. But in Mozilla values are not disappearing. please suggest how to cache web pages in all web browsers or any reference example.