我寫了一個jsp,之后修改代碼,但在瀏覽器中卻刷不出來,請問如何解決,之前有人告訴我關閉tomcat,然后重新啟動,但不是總好使,有哪位能告訴我,在線等。
估計你是緩存的問題
這段代碼加在<head>里面試一下
<% response.setheader("pragma", "no-cache");
response.setheader("cache-control", "no-cache");
response.setheader("cache-control", "must-revalidate");
response.setdateheader("expires",0); %>
要不你每次自己手工清一下瀏覽器的緩存吧,
還要樓上有人說,清tomcat的work文件夾,沒有重啟tomcat清也沒用的,重啟tomcat后就不用清了。
新聞熱點
疑難解答