Forum Moderators: open
My pages show two different version, one for logged out state and other for logged in state.
I have added following lines to my html files,
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
<META HTTP-EQUIV="Expires" CONTENT="0" />
Problem:
One I am logged in , it still shows the logged out state pages. The pages are going to the local cache (PC cache), why so? What should I do over here? When I press ctrl+f5 the cache is cleared and I see a logged in page.
Please help.
Regards,
AjiNIMC
Two possible ways are to use Apache mod_expires settings to disallow caching via HTTP headers. The second is to use server-side scripting (PHP, ASP...) so send the no-cache/must-revalidate HTTP headers with each page request.