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

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?".

Add A Custom Redirect, If You Change A Post URL

When you rename a blog, the most that you can do, to keep the old URL useful, is to setup a stub post , with a clickable link to the new URL. Yo! The blog is now at xxxxxxx.blogspot.com!! Blogger forbids gateway blogs, and similar blog to blog redirections . When you rename a post, you can setup a custom redirect - and automatically redirect your readers to the post, under its new URL. You should take advantage of this option, if you change a post URL.

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.