Preventing caching of text file.
Scenario: I have a text file in which I store the state of check-boxes i.e. whether they are checked or unchecked and I'm using a JavaScript to check the boxes according to the information/data in the text file. Whenever I a box is checked/unchecked the data in text file gets updated accordingly using php script. Whenever the page is reloaded the JavaScript check the boxes according to the last updated values. Problem: Due to the fact that the text file gets cached, the JavaScript check the boxes according to this cached file rather than the updated one. So is there any way to prevent caching of the text file? I've tried the meta tag method, <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT" but this method didn't worked for me.