Google Chrome & Broken CSS [FIXED]

Posted by admin August 27th, 2010

So, I like Google Chrome, less so now it’s started to go the same way as Firefox (MOAR FUNCTIONALITY!!!) but it’s pretty cool.

Like many Windows Users I run a Registry Cleaner / Temp File purger (think CCleaner) tool now and again. It always annoyed me that after running a clean, Chrome seemed to completely lose it’s head with breakages in Javascript and CSS.

YouTube was guaranteed to look completely pants and stop working, for example:

There didn’t seem to be a way to fix it.

I think I’ve worked it out though.

Google Chrome doesn’t seem to use an updating directory listing of it’s cache to see what files are there, it feels like it stores a list. This list can be put out of kilter by deleting it’s cache without telling it.

This means that if a page calls a CSS or JS that the cache list thinks it has (so doesn’t re-download), but in fact the file isn’t there, the site looks broken.

Fix:

I can’t find a way to refresh the cache list against what’s actually in the Chrome cache directory, so the easiest way is to synchronise the cache list to the actual cache by purging it.

Spanner -> Options -> Under the bonnet -> Clear browsing data -> -> clear browsing data.

Everything should be lovely again now.

It does seem this problem sorts itself out in time, I don’t know if that’s possibly to do with cache expiration or something.

Let me know if this helps or if you’ve got a better idea


One Response

  1. freesoft says:

    Thank you..really informative!!

Trackback URL for this entry