How to prevent IE cache JSP files

zhaozj2021-02-16  127

1. Use Java provided by Java, can be in JSP or servlet

<%

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

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

Response.SetDateHeader ("Expires", 0);

%>

2. Use the HTML tag, as follows:

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

New Post(0)