Prohibited page cache method

xiaoxiao2021-03-06  78

1, join in JSP or servlet

<%

Response.setHeader ("Pragma", "NO-Cache");

Response.setHeader ("cache-control", "no-cache");

Response.SetDateHeader ("Expires", 0);

%> 2, use HTML tags in the page, as follows:

转载请注明原文地址:https://www.9cbs.com/read-121614.html

New Post(0)