Now & Today Pages Not Updating
Posted: Tue 23 Mar 2021 10:16 pm
Hi there,
I've set up the standard web template (as supplied with MX) on my webspace, and it's all working fine except that the front page (index.htm) and Today (today.htm) pages refuse to update unless I clear my browser history. The guages update fine, every 15 sec, and the graphs and so on are all fine. Cumulus itself is set to update as appropriate in the Internet settings.
The fact that I'm having to clear the browser history to get it to update suggests it's using a cached version, so I've tried using a Cache-Control modification in a .htacess file on the web server, and I've also tried using HTML meta tags on the affected pages:
<meta http-equiv=“Pragma” content=”no-cache”>
<meta http-equiv=“Expires” content=”-1″>
<meta http-equiv=“CACHE-CONTROL” content=”NO-CACHE”>
Neither has worked, unfortunately, so perhaps there's something more going on than just a cache issue? Also, if it was a cache issue, I'm sure more people would have had issues before now and I can't find this specific issue in the forum.
Also, it looks like it should be doing a forced update every 60 sec, according to the setpagedata.js file:
// auto update every 60 seconds, only the index and today pages
let pageName = window.location.href.split('/').pop();
if (pageName == 'index.htm' || pageName == 'today.htm') {
setTimeout(function () {
getPageData();
}, 60 * 1000);
But this isn't happening. Maybe it's refreshing from cache, I don't know.
Any suggestions for what's going on? Thanks!
I've set up the standard web template (as supplied with MX) on my webspace, and it's all working fine except that the front page (index.htm) and Today (today.htm) pages refuse to update unless I clear my browser history. The guages update fine, every 15 sec, and the graphs and so on are all fine. Cumulus itself is set to update as appropriate in the Internet settings.
The fact that I'm having to clear the browser history to get it to update suggests it's using a cached version, so I've tried using a Cache-Control modification in a .htacess file on the web server, and I've also tried using HTML meta tags on the affected pages:
<meta http-equiv=“Pragma” content=”no-cache”>
<meta http-equiv=“Expires” content=”-1″>
<meta http-equiv=“CACHE-CONTROL” content=”NO-CACHE”>
Neither has worked, unfortunately, so perhaps there's something more going on than just a cache issue? Also, if it was a cache issue, I'm sure more people would have had issues before now and I can't find this specific issue in the forum.
Also, it looks like it should be doing a forced update every 60 sec, according to the setpagedata.js file:
// auto update every 60 seconds, only the index and today pages
let pageName = window.location.href.split('/').pop();
if (pageName == 'index.htm' || pageName == 'today.htm') {
setTimeout(function () {
getPageData();
}, 60 * 1000);
But this isn't happening. Maybe it's refreshing from cache, I don't know.
Any suggestions for what's going on? Thanks!