Freeola Home Get Dotted Domains Win Free Games Freeola Blog Freeola Guides Freeola Customer Forum

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:

Outstanding service and help.
I have spoken with the Freeola Staff on a few occasions, and have had absolutely outstanding service and help. Very polite people to deal with. I would recommend Freeola hi...
Kym

View More Testimonials

I can't believe how easy it was
I can't believe how easy it was to set my website up with Freeola and the one-click install options. The MyFreeola tools are easy to use and comprehensive enough to allow ...
Paul

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.