Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

??:How to banish the client cache in JSP  RSS feed

 
Aima Xu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,I meet the cache problem when I modified my data in db,the jsp page still show the old data till I refresh the page.How to solve this?Any code examples?thx.
 
Brian Glodde
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I usually use:
SERVER-SIDE
response.setDateHeader ("Expires", 0);
CLIENT-SIDE
<META http-equiv="Expires" content="-1">
<META http-equiv="pragma" content="no-cache">
<META http-equiv="cache-control" content="no-store">
You can find more discussion on this topic by using the search link
[ March 01, 2002: Message edited by: Brian Glodde ]
 
Aima Xu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thx a lot
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!