Why do firefox/chrome show a different page than IE8?

青春壹個敷衍的年華 提交于 2020-01-24 15:00:01

问题


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?


(source: deviantsart.com)


回答1:


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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/2742258/why-do-firefox-chrome-show-a-different-page-than-ie8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!