Skip to main content

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

Popular posts from this blog

Adding A Link To Your Blog Post

Occasionally, you see a very odd, cryptic complaint I just added a link in my blog, but the link vanished! No, it wasn't your imagination.

What's The URL Of My Blog?

We see the plea for help, periodically I need the URL of my blog, so I can give it to my friends. Help! Who's buried in Grant's Tomb, after all? No Chuck, be polite. OK, OK. The title of this blog is "The Real Blogger Status", and the title of this post is "What's The URL Of My Blog?".

Embedded Comments And Main Page View

The option to display comments, embedded below the post, was made a blog option relatively recently. This was a long requested feature - and many bloggers added it to their blogs, as soon as the option was presented to us. Some blog owners like this feature so much, that they request it to be visible when the blog is opened, in main page view. I would like all comments, and the comment form, to be shown underneath the relevant post, automatically, for everyone to read without clicking on the number of comments link. And this is not how embedded comments work.