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.
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.