Forum Moderators: phranque

Message Too Old, No Replies

Internet Explorer: page displayed does not match page source

page view and page source mismatch

         

raftman88

11:59 pm on Aug 11, 2004 (gmt 0)

10+ Year Member



New to the forum and hope this post does not overlap others. I am developing a php/mysql site and have recently encountered a problem where my browser is displaying a cached version of what should be a dynamic page. The page source reflects the changes I've made but the browser still displays the old page. I've tried deleting all temporary internet files, and have searched for a solution for hours now. I'm beyond frustrated at this point. Anyone have this problem as well? Cheers

Pendragon

12:10 am on Aug 12, 2004 (gmt 0)

10+ Year Member



We've all had the problem, believe it or not is is simply a silly little mistake we've overlooked. Try moving the code to a new page, test.php and opening it. See if it brings the old stuff or the new. If it is the old, then it is a php/sql error, not a caching error, becuase it couldn't posibly be cached as test.php (unless that was your filename).
Once you know that it isn't a caching error, it is a php/sql error, track it and fix it.
OR
If it is a caching error, try to figure out a way to make sure the page is dynamicly loaded.

I have alot of experience designing sites. One thing that never refreshes, unless you hit refresh manually is CSS, cascading style sheets. One thing that always does refresh dynamic content on it's own is sql queries, so it is most likely your php is buggy.

ToneLeMoan

12:10 am on Aug 12, 2004 (gmt 0)

10+ Year Member



Hi raftman88, if you're using IE, hold down SHIFT and then hit F5 to force a refresh ignoring the cache. I'm not too sure whether this works with Opera or Firefox browsers though. Otherwise set your options to "Load new version of page every visit" as opposed to any other option.

vkaryl

2:53 am on Aug 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you're using Firefox, you can force a bypass refresh with CTRL-R or CTRL-F5, either work fine. As a baseline, I will occasionally go to Tools/Options/Privacy/Cache/Clear just to make sure (in Dev Toolbar, it's Miscellaneous/Clear Cache), then CTRL-R or CTRL-F5 to reload a "clean copy" of the page.

It's sometimes amazing how often even manually "clearing cache" won't actually produce a "new version" page. Among the other things that can be problematic is simply forgetting to upload ALL changed files, INCLUDING your css file. You don't want to know how often I've done that....

raftman88

6:58 am on Aug 12, 2004 (gmt 0)

10+ Year Member



Well I'm glad I didn't go so far as to send hate mail to microsft over caching problems.

My mistake, I was trying to grey-out a background image with certain include files. My mistake I finally found, was having the background image in a <td> tag and then later deciding to change it to the <table> tag. What I didn't do, was remove it from the <td> tag when I was done. I ended up with was the images in effect layered on top of each other. Everything looked great until I tried changing the background on certain pages. Thought I was going crazy!

Thanks for the responses and making me look back at my code to find the error. Cheers

MatthewHSE

5:58 pm on Aug 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<off topic>

Among the other things that can be problematic is simply forgetting to upload ALL changed files, INCLUDING your css file. You don't want to know how often I've done that....

I used to do that, drove me crazy. So I bought WebDrive and now work directly off the server. Besides my text editor, that was the best $40.00 I ever spent!

</off topic>