Results 1 to 1 of 1
Thread: JSP pages with no caching
-
JSP pages with no caching
Sometimes you do not want your JSP pages to be cached. This can be done by setting the header parameters as shown below:
Java Code:<% response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", -1); %> <HTML> <HEAD> </HEAD> <BODY> my page body </BODY> <HEAD> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <META HTTP-EQUIV="Expires" CONTENT="-1"> </HEAD> </HTML>
Similar Threads
-
caching the tables
By jayashree in forum JDBCReplies: 0Last Post: 01-30-2008, 06:43 AM -
Caching problem
By anki1234 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 01-15-2008, 07:44 AM -
Caching problem
By anki1234 in forum Java ServletReplies: 0Last Post: 01-15-2008, 07:41 AM -
Getting all the pages from a domain
By eva in forum New To JavaReplies: 0Last Post: 12-25-2007, 11:41 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks