Jump to content

headers wont disable CACHE


Looktrne

Recommended Posts

Hello everyone I help out fellow dating site owners with a script I have worked with for a couple years.

 

on a few occasions like 3 out of 100 I found sites that cache the pages and the pages are therefor not dynamic and these same sites ask users to log in more than once at times...

 

so it seems on top of the dynamic pages not being refreshed there is also a cookie issues.

 

I check the phpinfo.php settings and can not find the problem

 

I tried to disable cache through html and php

 

I used this in the php

 

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past

 

the pages are still being cache and I don't understand why? this same script runs great on many other servers... please someone give me an idea...

 

you can see the site that is cache the pages at:

 

http://jewishsoulsearch.com

 

user: test  pass:  test

 

if you log in... then click log out... click back and refresh you will still see the same page when it should bring you back to the login box because you are logged out..

 

you will see what I mean if you test it on this working site:

 

http://abmatch.com

 

user:test  pass:test

 

when I log out and click back where the members menu is if I refresh I am prompted to log in.. this is working correctly...

 

only if I clear the cache manually will the other site function properly..

 

how can I over ride this for firefox and IE..

 

please any help or advise is appreciated..

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/111585-headers-wont-disable-cache/
Share on other sites

How can I check this myself...

 

I can change settings myself if I can find out what settings are not correct.

 

and even if it is a setting I cannot change I would like to tell them what needs changing.

 

it is alot easier to deal with a host when you have a clue as to what is wrong... so if anyone else could help please let me know

 

Paul

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.