Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
session.invalidate メソッドを使用しても Web ページがキャッシュされます。Javaコーディングを使用してページのキャッシュを削除するにはどうすればよいですか?
ブラウザーによってキャッシュされないように、ページに適切なヘッダーを設定する必要があります。
response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", -1);
と
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">