How do I ensure jQuery ajax call does not send a local copy of file?
Posted
by Tommy
on Stack Overflow
See other posts from Stack Overflow
or by Tommy
Published on 2010-05-07T00:11:35Z
Indexed on
2010/05/07
0:18 UTC
Read the original article
Hit count: 183
$.ajax({
type: 'GET',
url: "string.txt",
cache: false,
success: function(str){
alert("Data is: "+ str);
}
});
In this example, string.txt is still sent to the cache (\Temporary Internet Files) How do I ensure that the file is not sent - read from the server only? Am I missing an option?
I set cache to false but that does not block it from being sent to client. For example, ajax POST does not send a local copy.....
Thanks
© Stack Overflow or respective owner