Possible Cache-ing problem?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
cto1mac
Forum Commoner
Posts: 54
Joined: Tue Jan 27, 2004 6:11 am
Location: Virginia Beach, VA

Possible Cache-ing problem?

Post by cto1mac »

Ok I have gotten some basic db calls working in PHP. Yay!!
But now the thing that is throwing me off.

I bring up the main page. From there I click the link that takes me to my php page. It runs, hell it runs great. Then I navigate to another portion of the site. Then when I try to go back (not using the back button) to the php page I get a "Document requested not found error". At first I thought this was a cache-ing problem but I added the:
<?
Header('Cache-Control: no-cache');
Header('Pragma: no-cache');
?>

to stop the page from cache-ing on load but still no dice.

Same thing happens when I am on the php page and hit refresh. Some advice please.

Thanks
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

What is your PHP code doing?
User avatar
cto1mac
Forum Commoner
Posts: 54
Joined: Tue Jan 27, 2004 6:11 am
Location: Virginia Beach, VA

Post by cto1mac »

Ok a bit long-winded but, here goes.

From the main page of my site (it is .shtml) I click the link to my php page. Initially it works fine. Then from the php page I click a link to another .shtml and then from that .shtml page I navigate back to the first .shtml page. Then i click the link to the same php page that had worked the first time (2 minutes before) I get an IIS error:
http 404 page not found. The frustrating thing is that it worked just 3 clicks before!! Please help!

i.e:
1: page1.shtml <works fine>
2: test.php <works fine>
3: page2.shtml <works fine>
4: page1.shtml <back to the first page>
5: test.php <back to the same php page, but 404 error!>


Thanks
Post Reply