if you specify the full url of the page it should force a reload from the website and bypass the cache - the same as doing ctrl reload versus just reload
On Saturday, 8 December 2018 13:21:42 UTC+2, Rob Field wrote: > > Or not. > I had been googling how to get the browser to bypass its cache. > Auto refresh works.. but it's no different to pressing the 'reload this > page'. > It still uses the cached data if the graphic file 'appears' identical. > There is clearly something else needed and there are various opinions as > to the best way to do this. > I'm using the standard template right now - maybe some of the other > templates overcome this .. anyone? > > On Saturday, 8 December 2018 10:05:24 UTC, Andrew Milner wrote: >> >> 1. It's just you >> 2. Google for auto refresh web page >> 3. Add to template(s): >> >> >> <meta http-equiv="refresh" content="5"> >> >> This will refresh page every after 5 seconds. >> >> >> >> >> >> >> On Saturday, 8 December 2018 11:24:17 UTC+2, Rob Field wrote: >>> >>> Adding to this... >>> If I view the page source and look at the section calling the images ( >>> SEE SECTION BELOW ) >>> Clicking on the image initially shows the cached image , doing a refresh >>> shows the updated 'unshown' image. >>> So there needs to be a way to tell the browser to reload all the images >>> without the viewer having to type in anything special, or the image >>> generator itself is perhaps missing something to indicate to browsers that >>> it's been updated. >>> Any ideas or clues. Is this just me? >>> >>> <div id="plots"> >>> <img src="daytempdew.png <http://www.spider-e.com/rob2/daytempdew.png>" >>> alt="temperatures" /> >>> <img src="daytempchill.png >>> <http://www.spider-e.com/rob2/daytempchill.png>" alt="heatchill" /> >>> <img src="dayhumidity.png <http://www.spider-e.com/rob2/dayhumidity.png>" >>> alt="outside humidity" /> >>> <img src="dayrain.png <http://www.spider-e.com/rob2/dayrain.png>" alt=" >>> rain" /> >>> <img src="daywind.png <http://www.spider-e.com/rob2/daywind.png>" alt=" >>> wind" /> >>> <img src="daybarometer.png >>> <http://www.spider-e.com/rob2/daybarometer.png>" alt="barometer"/> >>> <img src="daywinddir.png <http://www.spider-e.com/rob2/daywinddir.png>" >>> alt="Hi Wind" /> >>> <img src="dayinside.png <http://www.spider-e.com/rob2/dayinside.png>" >>> alt="Inside" /> >>> <img src="daywindvec.png <http://www.spider-e.com/rob2/daywindvec.png>" >>> alt="Wind Vector" /> >>> </div> <!-- End id "plots" --> >>> >>> >>> >>> On Friday, 7 December 2018 21:07:41 UTC, Rob Field wrote: >>>> >>>> The answer appears to be the cache in chrome. Although the report time >>>> was being updated correctly, the images were not. When viewing the ftp'd >>>> data on a different computer that hadn't accessed the web page before, the >>>> results were as expected. Having cleared the browsers cache, all reports >>>> were then as expected. >>>> I don't know how the cache works but it seems that the changes made and >>>> published in the report are not sufficient to get the browser to >>>> completely >>>> reload the published form. >>>> Check out the two page images attached, they have different heading >>>> times, but the graphs are stamped with the same older time. ( the time >>>> just >>>> after the cache was cleared ). >>>> This would seem to be an inherent problem rather than caused by me >>>> changing a text string. ( Perhaps ?) Although others must be getting >>>> correct updates I presume, so perhaps something else is needed to force a >>>> full browser reload upon each refresh. >>>> >>>> >>>> >>>> >>>> On Thursday, 6 December 2018 23:30:26 UTC, gjr80 wrote: >>>>> >>>>> On thinking some more the situation you describe does not exactly fit >>>>> with the default weeWX image generation times but it may be part of the >>>>> issue. Do force regeneration of the image files as I suggested and then >>>>> have another look at things, at least that will take one variable out of >>>>> the equation. If there are still issues copies of what you see locally >>>>> and >>>>> remotely would help. >>>>> >>>>> Gary >>>>> >>>>> On Friday, 7 December 2018 09:23:52 UTC+10, gjr80 wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> By default year images are only generated once per day, month every >>>>>> three hours, week every one hour and day every report cycle. After you >>>>>> make >>>>>> a config change try deleting all of the week, month and year images (or >>>>>> for >>>>>> that matter all the images) to force them all to be regenerated on the >>>>>> next >>>>>> report cycle. >>>>>> >>>>>> Gary >>>>>> >>>>>> On Friday, 7 December 2018 09:11:23 UTC+10, Rob Field wrote: >>>>>>> >>>>>>> I'm customising the report and database to include a different type >>>>>>> of measurement. In this instance it would be pH value. >>>>>>> Since this is all new I'm making small changes and observing the >>>>>>> results , first plan to simply change the Wind Chill Graph to show 'pH' >>>>>>> I've successfully? removed 'heat index' text and replaced it with >>>>>>> 'pH' in the database and also in the standard skin.conf. >>>>>>> Running the simulator as a test works - I think I changed the >>>>>>> simulator to output 'pH' but there's an interesting difference between >>>>>>> what >>>>>>> I see when viewing the output using file:///var/www/html/weewx/ and >>>>>>> when I >>>>>>> view the report on a cloud web page that it gets sent to. >>>>>>> On the 'file' view I still see the text 'Heat Image' after the 'Wind >>>>>>> Chill' graph on the yearly plot but on all others I see 'pH' as >>>>>>> anticipated. >>>>>>> From the Web view, I still see 'Heat Index' after 'Wind Chill' on >>>>>>> all reports EXCEPT the monthly one. >>>>>>> I've not changed anything in the Template - just the skin.conf. >>>>>>> Regardless of me even doing it correctly I would have thought the local >>>>>>> and >>>>>>> web report should be the same.. everything else matches including the >>>>>>> data >>>>>>> time stamp so I know that both are being regenerated - just they don't >>>>>>> match. >>>>>>> >>>>>>> Attached image shows what I get ( want) , but not consistent, and >>>>>>> skin.con has no text 'Heat Index' in it at all. I could be from the >>>>>>> template, but even so I haven't changed that at all. >>>>>>> I've read through much of the docs, but can't find anything that >>>>>>> explains all the skin.conf [[ ]] [[[ ]]] brackets clearly enough >>>>>>> for >>>>>>> me to know what to do with out actually doing something and see. >>>>>>> >>>>>>> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.