• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

AJAX : How do I clear Browser cache in JSP ?

 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic