(Disclaimer: I'm tired; I may be talking nonsense.)
quote:
Even Ctrl+F5 doesn't force it to download the markers.txt file again.
Ctrl-F5 will only force-reload the current request - ie: that script file.
It's unlikely that GDownloadUrl will pass through the no-cache header.
quote:
I added a "?" here:
Which did nothing.
Not surprising; nothing has changed.
The question mark just delimits the query string from the start of the URL.
You could probably add an actual query string onto the end, but you'd need to generate a random number, and I think that's a messy solution anyway.
Instead, I'd opt for switching your markers.txt to a markers.php and sending a no-cache header with that.
Here's some code from
the PHP manual that should work:
PHP code:
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
(you'd then have the txt content after that, and would possibly need to be slightly smarter about how you store the data)