• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

AJAX : How do I clear Browser cache in JSP ?  RSS feed

 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am using Ajax in my web application.
but just because of browsers cache i am getting problem.
I am using Internet Explorer.
If any one having an idea regarding this please tell me.
[ January 13, 2007: Message edited by: vijay saraf ]
 
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by vijay saraf:
Hello All,

I am using Ajax in my web application.
but just because of browsers cache i am getting problem.
I am using Internet Explorer.
If any one having an idea regarding this please tell me.

[ January 13, 2007: Message edited by: vijay saraf ]



Are you getting the same old data for each request? Because browser cache response and returns that only again and agian.

If yes then make your request different each time by sending one more extra parameter called 'time'.
 
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you probably should switch to post

or

xmlhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");

Eric
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!