Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Browser cache in jsp  RSS feed

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we are using
-------------------------------------------------
response.setHeader("Expires", "0");-------------> (1)
---------------------------------------------------
this for prevent the browser cache...

i saw the below one in my project
----------------------------------------------------------
response.setHeader("Expires", "01 Apr 1995 01:10:10 GMT");---->(2)
---------------------------------------------------------

what is the difference between 1 and 2 .
please anybody explain me
[ September 05, 2008: Message edited by: Bear Bibeault ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what do you think #2 does? Does it get cached?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ULF.. (1) and (2) both are giving unexpected result as it is not prevent the browser cache

please explain me
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!