Controlling Caching Of Your Blog

If you have a blog that you update frequently (multiple times / day) with high impact content, you'll be wanting your readers to see your updates, promptly.

Thanks to the caching policies of the readers browser, this may not happen consistently. You may also be concerned with your reader being confused about discrepancies between "yourblog.blogspot.com" and "www.yourblog.blogspot.com" - this too is a caching issue.

There is a way around the caching problem, but consider this carefully.

If you want your blog to not be cached, at all, you can prevent caching. Add 5 meta tags into the header of the blog, by editing the blog template.
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Pragma-directive" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Directive" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">


Think about this carefully though. Using cache is a general Internet principle.

When you surf the same page, repeatedly, you do not want your browser reloading every page that you surf, each time you surf to it, when the page hasn't been changed.

Caching is an efficiency feature. Some surfers will even restrict visits to your page, intentionally, if they notice that your page reloads each time they visit it, but with the same old content.

So only use this if the contents of your blog make it meaningful. Think of your readers, and ask yourself
Will my readers want to load my blog, over and over, each time?
If you can't answer "YES", confidently, don't do this.

Comments