Forum Moderators: open
CONCLUSION: if want to stop caching - have to use No-cache header."
BUT BUT there is always a way! Does anyone know a way to prevent caching without using headers? My host does not support php headers. So, need find a way just using html or javascript or php (but not php headers).
I guess javascript must provide some avenues. Anyone know any of these?
[tactika.com...]
-------
Instruct the browser to bypass the Cache
Put that in the HEAD section of the HTML page
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
However, MS IE (almost all versions) do not process the instruction properly due to the cache mechanism.
The workaround is to included a second <HEAD> section at the bottom of the page (no joke!).
<HTML><HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="REFRESH" CONTENT="5">
</HEAD>
<BODY>
This page has 2 HEAD sections to properly bypass the cache in all browser.
</BODY>
<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</HEAD>
</HTML>
NOTE: the above example uses META HTTP-EQUIV="REFRESH" to make the browser reload the page automatically
after 5 seconds, this is for demonstration purpose only (to see that the cache is actually bypassed). This
has nothing with the bypassing of the cache itself.
---------