Chrome Refresh Problems

0

I'm having an occasional problem with Chrome not properly loading CSS files when I hard-reload (ie. clear the cache then reload). In other words, Chrome properly loads the page, but no style is applied to it. However, if I hard reload again, the CSS file is retrieved and the style is properly applied.

This is especially pronounced on sites built in MediaWiki (like Wikipedia, or my own personal Wiki).

Unfortunately, it's really irregular, so it's hard to debug. I haven't seen anything in the console to help me figure out what's going on. However, it is frequent enough that I hardly use Chrome anymore, and instead just use Firefox.

Is there some way to make sure that Chrome uses its cached version of the CSS file so that this doesn't happen? I'm assuming that is what IE and Firefox are doing and why they don't have this problem.

Nick2253

Posted 2014-09-22T22:15:49.210

Reputation: 754

Are you on the latest version of chrome? – None – 2014-09-22T22:18:01.120

Sorry, didn't include that info. I'm on Ubuntu 14 with Chrome 37.0.2062.120. – Nick2253 – 2014-09-22T22:22:03.540

Tried reinstalling? It could be an issue with the mediawiki version. It happens to me also sometimes. – None – 2014-09-22T23:33:34.277

Answers

0

You say it happens on both Wikipedia and your own MediaWiki installation, so we can rule out "reinstalling MediaWiki" as a solution. :) (Altough, system administration volunteers for Wikipedia and all the Wikimedia projects are welcome!)

Some users occasionally experience timeouts especially for the resources loaded from bits.wikimedia.org (mainly CSS and JS). I've heard of users satisfied by a simple Chrome/Chromium extension which simplifies the resources loaded, removing a particularly heavy one.

That said, I'm a bit confused by how this could happen on your wiki as well. It's entirely possible that the first request hits a cold cache and times out, while the second hits a warm cache and responds on time. [Firefox does fancier things with local cache, which sometimes improve things (as might be happening here) and sometimes not.] If this is the case, you may want to use webpagetest.org or similar to find out whether your load.php calls are particularly slow.

Nemo

Posted 2014-09-22T22:15:49.210

Reputation: 1 050