I am testing it in Firefox.
I am sure it is nothing like, I forgot to upload, or did not wait for it to fully save – as I have tested this a number of times – simply adding an alert and refreshing – looking for the alert…. sometimes it is not there… Second refresh… there it is.
Anyone know what gives or how to ensure the refresh picks up the changes?
Thanks all 🙂
This particular problem is caused by
Normally, you would not require the script to change when viewed by the user, but when you are developing it becomes a real pain. So during those time, just add some random text at the end of every file during load or if you are too lazy to do that, send a header saying to clear the cache.
In PHP something like at the top will do it:
header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1990 05:00:00 GMT");