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

Pages caching in Firefox - HELP!

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

Moderator: daj

Post Reply
CalonDdraig
Posts: 13
Joined: Sun 24 Apr 2011 11:26 pm
Weather Station: Davis VP2
Operating System: Windows XP
Location: Nantlle, Gwynedd

Pages caching in Firefox - HELP!

Post by CalonDdraig »

Hello,

I've been having some problems with the pages generated by Cumulus being cached by firefox - no matter what I try to do, nothing works. IE and Chrome are fine, but Firefox needs manually refreshing to make the recent upload show. This is especially true of the graphs on the 'trends' page - those tend to need a CTRL + F5 to update.

In the header of all my pages I have these tags:

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META HTTP-EQUIV="REFRESH" CONTENT="60">

...But they don't seem to make any difference.

Here's the link to our cumulus site: http://weather.trigonos.org/cumulus/index.htm

I know other people have had these problems, but adding 'no cache' tags hasn't solved them for us. Anyone know of anything we can do to force firefox to always get a new copy from the server?

Thanks in advance,

~CalonDdraig
Image
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: Pages caching in Firefox - HELP!

Post by steve »

Your web server is sending 'expires' headers for two weeks hence:

Date: Mon, 24 Oct 2011 10:19:02 GMT
Expires: Mon, 07 Nov 2011 10:19:02 GMT

Firefox appears to be ignoring your http-equiv headers; this is probably because they are invalid. Running your index page through the HTML validator gives this for the first error:

Error Line 6, Column 18: there is no attribute "HTTP-EQUIV"

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
Steve
CalonDdraig
Posts: 13
Joined: Sun 24 Apr 2011 11:26 pm
Weather Station: Davis VP2
Operating System: Windows XP
Location: Nantlle, Gwynedd

Re: Pages caching in Firefox - HELP!

Post by CalonDdraig »

Thanks for that Steve, I'll adjust/tidy up my html later - hope this fixes things.

Is there a way to make my server send earlier 'expires' headers at all? Or is this beyond my control?

Kindest regards and keep up the good work with Cumulus! Token of my apriciation in your paypal donations account!

~CalonDdraig
Image
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: Pages caching in Firefox - HELP!

Post by steve »

You might be able to do it by adding the following to a .htaccess file in the root of your web space:

Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate"

But we're right at the limit of my knowledge now!
Steve
CalonDdraig
Posts: 13
Joined: Sun 24 Apr 2011 11:26 pm
Weather Station: Davis VP2
Operating System: Windows XP
Location: Nantlle, Gwynedd

Re: Pages caching in Firefox - HELP!

Post by CalonDdraig »

Hi Steve,

Thanks for the tip with .htaccess - I don't actually need my meta tags now, so I can remove them and have it validate as strict. The .htaccess has stopped any caching that I can see and it always appears fresh whenever you visit the page.

Thanks!

~CalonDdraig
Image
Post Reply