How can I make every request from my browser to hit server and disallow it to pick from the cache?
Apr 6th, 2008 19:41
ha mo, Jean-Bernard Valentaten, John Vijay Kumar,
Well, when I was still into web-programming, I used to disable the
cache of my browsers, but of course you can also do a hard-reload
(SHIFT-F5 in IE).
The problem why metas do not work, might be that you have the js-code
in a spare file a load it via <script src="...">.
The meta-tags do not include these files (though they should), so the
only way is to disable the cache in the browsers you use, or include a
button in the webpage that hard-reloads the page onclick.
The onclick-handler looks like this:
This should work.
I appreciate your effort. Thanx for it.
In my case I would like to get this solved by using a script. I tried
doing this using the meta tag but with no success. My problem in brief
goes like this:
making a fresh build with the changes, then I would not get the changes
reflected unless I delete the cache. Also my intention is to make this
work irrespective of the browser settings with respect to the cache.
So is there a way out?
Thanx in advance.
There are three possibilities:
- disable caching in your browser
- use appropriate meta-tags in your documents (read the html manual for
- use to perform a hard-reload