Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Problem with website updates

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Problem with website updates

Post by Synewave »

Put these three lines in in the indexT.htm file, just below <head>

Code: Select all

<meta http-equiv="Cache-Control" content="no-cache" >
<meta http-equiv="Pragma" content="no-cache" >
<meta http-equiv="Expires" content="-1" >
That should stop caching.
DaveNZ
Posts: 373
Joined: Mon 07 Dec 2009 10:27 pm
Weather Station: Davis VP2
Operating System: Windows 7 64-bit
Location: Howick, Auckland, New Zealand
Contact:

Re: Problem with website updates

Post by DaveNZ »

That's the way it's supposed to work; see this http://www.mnot.net/cache_docs/#CONTROL

Still, I have used 2 of the meta tags listed in the previous post in my site, and have not had any cache problems at all.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Problem with website updates

Post by steve »

Kieron wrote:The problem is that although the updates are being sent to my server, when I open the website the current conditions are always out of date.
Your web server is sending an HTTP 'Expires' header with a date 24 hours hence.

HTTP/1.1 200 OK
Server: Zeus/4.3
Date: Mon, 27 Dec 2010 16:08:32 GMT
Last-Modified: Mon, 27 Dec 2010 16:04:01 GMT
Vary: Accept-Encoding
Expires: Tue, 28 Dec 2010 16:08:32 GMT
Content-Length: 4591
Content-Type: text/html
Accept-Ranges: bytes

So it's saying that a browser doesn't need to fetch a new page for 24 hours.
Steve
Kieron
Posts: 12
Joined: Fri 24 Dec 2010 1:35 pm
Weather Station: Vantage Vue
Operating System: Windows XP SP3

Re: Problem with website updates

Post by Kieron »

Steve, thanks for that. Is there anything I can do about it - in layman's language, please :-)

I was going to try Paul's (Synewave's) workaround by inserting some code in indexT - would that work?

I would add also that I have configured my Opera browser so that it does not remember the content of cached pages, and that seems to have done the trick in that I now see the latest data every time I visit the page. Of course, that won't help anyone else who visits.

Thanks again for everyone's input, but a little more advice still needed please.

Best wishes, Kieron
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Problem with website updates

Post by Synewave »

Kieron wrote:I was going to try Paul's (Synewave's) workaround by inserting some code in indexT - would that work?
Hi Kieron,

I use it and it seems to work.

Make a backup of your indexT.htm file first, just incase you need to revert!

Just edit the indexT.htm file using Notepad (or install Notepad++, which is much nicer to use). As I said before, just place those three lines of code just below <head>. Save it click on Webupdate in File in the Cumulus program.

To make sure the new code has been updated on your page, browse the page on the internet and right-click then click on view source. You should see those three lines of code.

Just ask if you get stuck.
Last edited by Synewave on Mon 27 Dec 2010 8:03 pm, edited 1 time in total.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Problem with website updates

Post by beteljuice »

It will work IF the server 'allows' the expires overwrites !

He may need to contact his web space provider - or

talk to daj ;)
Image
......................Imagine, what you will KNOW tomorrow !
Kieron
Posts: 12
Joined: Fri 24 Dec 2010 1:35 pm
Weather Station: Vantage Vue
Operating System: Windows XP SP3

Re: Problem with website updates

Post by Kieron »

OK Folks,

I took Paul's advice and amended the indexT.htm file. It seems to have done the trick and I can now see current data every visit, regardless of which browser I use - presumably everyone else can too.

So, many thanks to Paul and to everyone else who took the trouble to respond to this thread.

Happy Days!

Kieron
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Problem with website updates

Post by Synewave »

Excellent, glad it worked. You could also put those three lines of code in the other .....T.htm files to make sure they always display the latest data.
Kieron
Posts: 12
Joined: Fri 24 Dec 2010 1:35 pm
Weather Station: Vantage Vue
Operating System: Windows XP SP3

Re: Problem with website updates

Post by Kieron »

Hi Paul,

No need, I think. They seem to update at the same time as the index page.

Cheers, Kieron
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Problem with website updates

Post by Synewave »

Kieron,

Just a little note just in case you haven't realised, when you next upgrade Cumulus, you will lose those three lines from your indexT.htm file if you have 'update HTML templates' ticked during the upgrade process. So either untick that option next time you upgrade or put those lines in again after upgrading.
Kieron
Posts: 12
Joined: Fri 24 Dec 2010 1:35 pm
Weather Station: Vantage Vue
Operating System: Windows XP SP3

Re: Problem with website updates

Post by Kieron »

Thanks Paul, I've made a mental note of that.

Cheers, Kieron
Post Reply