Entry
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:
onclick=""
This should work.
HTH,
Jean
Hi Jean,
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:
I change any of the javascript functions and try accessing it after
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.
Cheers,
John
This is not really a javascript-question, but I'll answer it anyway.
There are three possibilities:
- disable caching in your browser
- use appropriate meta-tags in your documents (read the html manual for
that)
- use to perform a hard-reload
HTH,
Jean
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com