caching and ajax

M

mypublicmail

All the discussion I've seen about caching in connection with ajax and
hidden frame programming is how caching can be bad. I understand that,
and my question is different. When I send a request for data out to my
server to partially update a page, I'm going to grab an XML or TXT file
off of the server. This is the data I'm going to use to update my
page. But what if that file has NOT CHANGED since the browser last
brought it in? In the same way that browsers cache HTML files and load
it from the local cache when it's as fresh as the server's file, can we
do the same for AJAX and the text files it retrieves? If the local
file is fresh, I'd like AJAX to use the local file --especially since
I'm asking for that file every 2 seconds.

Thanks for any advice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top