Mobile app version of vmapp.org
Login or Join
Goswami781

: Google Cache CSS and HTML files are out-of-sync I am monitoring the cached version of the main page of one of my sites. I have noticed something strange. Obviously, the cached pages is displayed

@Goswami781

Posted in: #Cache #Css #Google #Html

I am monitoring the cached version of the main page of one of my sites. I have noticed something strange.

Obviously, the cached pages is displayed with the latest CSS file. Yet, the page content is quite oudated.

How come? Is there anything I can do about it or should I just wait?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Goswami781

2 Comments

Sorted by latest first Latest Oldest Best

 

@Gretchen104

I have noticed that by adding a proper lastmod tag for the corresponding page in my sitemap.xml (which is registered in my robots.txt) and by updating it when the page was modified, the cache has been updated correctly after some days. I also see the impact in Google Webmaster.

10% popularity Vote Up Vote Down


 

@Nimeshi995

Google Caches only HTML content

I believe that Google only caches the HTML content and additional files like JS/CSS/Images are still required to display the cache correctly. If you was to rename an image or css file completely you should notice that cache alters as well. But you can't change the HTML Content no mater what you do until they refresh their system.

A quick test

A quick test on this theory would be to quickly rename your CSS file breaking it temporary and quickly refresh the cache page and see the result. CTRL+F5 (Hard Refresh).

Don't Worry About Google Cache

I wouldn't concern yourself to much on the Google Cache its not really important, it's useful for using when sites are down or when deletions occur you can recover a lot of the HTML data. In terms of rankings, no effect whats so ever.

Please Note:


Cached: Google crawls the web and takes snapshots of each page. When
you click Cached, you'll see the webpage as it looked when we last
indexed it.


The above snippet from the Google cache link may imply that its when your page was last indexed this is simply untrue, the cache service Google offer is often days behind the algorithms itself. And a prime example of this is when you post something in your blog or create another page on your site your often see that your page is indeed indexed yet there is NO CACHE PAGED - Which is a clear indication that the cache system is not real time as the algorithms.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme