aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes AJAX : How do I clear Browser cache in JSP ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX : How do I clear Browser cache in JSP ?" Watch "AJAX : How do I clear Browser cache in JSP ?" New topic
Author

AJAX : How do I clear Browser cache in JSP ?

vijay saraf
Ranch Hand

Joined: Jan 08, 2005
Posts: 141
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 ]

Thanks
Vijay Saraf.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
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'.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
you probably should switch to post

or

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

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AJAX : How do I clear Browser cache in JSP ?