views:

217

answers:

3

When I look at this published Google Docs document, I see the latest version with Firefox and Chrome, but an older version with IE8. Also, screen-scraping it via PHP/Curl gives me an older version.

I've tried CTRL-Refresh in IE8 but I can't get it to show me the newest version. No matter what headers I try to change in PHP/Curl, I can't get it to show me the newest version.

Note: I'm sure I could dig in IE8 and find some cache entry to clear, but what is not happening on this URL that is happening on, say, cnn.com which indeed gives me the current news every time I look at it in IE8 and not some cached version of the site from a couple days ago? e.g. is Google Docs not sending some kind of header that browsers (or at least IE and PHP/Curl) expect in order to not show a cached version?

What am I not understanding about browsers/headers/caching here? How can it be that different browsers show different contents of one page?

alt text

A: 

Try navigating to & downloading: http://ccleaner.com

Once you've got it installed, close all your browsers, then run the cleaner. This should clear the cache from all browsers (as well as lots of temp files, etc).

Once done, re-open each browser and try the URL again. I'm guessing you have some cached data from the page in your browsers that's affecting your tests.

Ryan P.
A: 

Looks like the browser is caching the old data. You could try clearing the cache on your browser and re-open the link.

blackrocky
but shouldn't the browser automatically recognize this? e.g. what is not happening on this URL that is happening on, say, cnn.com which gives me the current news everytime I look at it in IE8 and not some news from a couple days ago?
Edward Tanguay
also, any idea how to force a refresh of the cache in PHP/Curl so that I can clear the cache there as well?
Edward Tanguay
+1  A: 

Here is the deal: IE is showing the latest version, it's Firefox and Chrome who are caching the page.

Try hitting CTRL + F5 in Firefox and Chrome, if that doesn't work install the Web Developer Toolbar extension for Firefox and pick "Disable Cache" under the "Disable" options menu.

Alix Axel
I simply forgot on this document to check the box "Automatically re-publish when changes are made" when I published the first time. Since FF and Chrome seem to share the cookie, they were showing me the updated version as the "published document" so I thought it was indeed published. Lesson learned: always check that box otherwise the browser with which you edited the document will show you the changes as "published" but they will not really be published.
Edward Tanguay