Freeola Home Get Dotted Domains Win Free Games Freeola Blog Freeola Guides Freeola Customer Forum
get Any UK domain name
just 49p for 1 year!

Freeola Guides


Making sure your visitors see fresh content

By on 20th December, 2017 | 0 Comment(s)

Here's an easy but useful tip!

 

Have you ever had to say (or been told):

"You might have to refresh the page(s) to see the changes."?

 

Creating websites for people I found myself saying this quite a lot. Some people then need an explanation of how to refresh a page!

 

If a website has changing content - like latest news or listings etc. then visitors that have viewed the page before have a good chance of having the data cached (stored locally on their device by the browser) so won't see the latest changes.

 

A client eventually said to me that regular website visitors might not be seeing the latest changes. A good point! Depending on the visitors browser settings they could well be viewing out of date content.

 

I started looking at the options to fix this. I found many references to adding META tags.

 

i.e.

<meta http-equiv="expires"... 
<meta http-equiv="pragma" content="no-cache">

 

But after some experimenting I found that not all browsers obey these tags so it wasn't a reliable solution.

 

The answer is to update your .htacess file to include a few simple lines. This is what I use:

 

<FilesMatch "\.(htm|html)$"> ExpiresActive On ExpiresDefault A300 Header append Cache-Control must-revalidate </FilesMatch>

 

Caching is a good thing on the whole as it speeds up your web site for your visitors - using the above code keeps images (a big bandwidth overhead) cached as normal. But all files ending in htm & html are only cached for 5 minutes (A300 = 300 seconds after Access).

 

This seems a good compromise. The website is quick to browse but repeat visitors will be forced to load the new content.


Did you find this article helpful?

Yes | No


Article Comments (0)
There are currently no comments on this article.
Add your comment:

Comments are limited to 750 characters, you have 750 remaining.

Freeola & GetDotted are rated

Check out some of our customer testimonials below:

...great to have the backup of Freeola and the excellent staff...
I recently purchased a new computer and had initial problems getting it set up to receive and send e-mails etc and I spoke to you on several occasions and we finally got it...

View More Testimonials

Just a quick note to say thanks for a very good service ... in fact excellent service..
I am very happy with your customer service and speed and quality of my broadband connection .. keep up the good work . and a good new year to all of you at freeola.
Matthew Bradley

View More Testimonials

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Tell us what you think!

Live Chat is offline

Live Chat is available:
9am to 6:30pm Monday to Friday (excluding bank holidays).

01376 55 60 60

Send us a ticket.

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.