How do I keep a file on the server, using the ajax call?
Need to read a text file located on the server.
However, I do NOT want that file to be sent to the clients cache or
"Temporary Internet Files". I do not want it to be sent anywhere, just to
remain on the web root of the server, to be read only.
How can I ensure that happens using jQuery?
So far I have the below, but it still sends a copy to the client.
$
.ajax({
type
: 'GET',
url
: "string.txt",
cache
: false,
success
: function(str){
alert
("Data is: "+ str);
}
});
I noticed the ajax call with POST has the desired behavior I mentioned above.
How can I do this with jQuery?
Thank You.