Is this thread
<https://groups.google.com/d/msg/weewx-user/CwRLAERrRW0/bAF12-WDDwAJ>
helpful?

-tk

On Thu, Mar 16, 2017 at 7:59 AM, Joe Percival <[email protected]> wrote:

> Recently my webhost (bluehost) started adding scripts, without notice or
> permission, that institute both page and browser caching which has resulted
> in users being presented with old images unless the image name is changed
> somehow.
> I was wondering if there might be a way to do the following:
> 1)  Have weewx create a unique image name for all the images each time a
> report is generated.
> 2)  Have a method in the template that knows the correct new image names
> and creates the appropriate html.
> 3)  Have a method in FTP that deletes old content before loading new
> content to avoid accumulation of old, unused images.
>
> regarding #1, if I put cheetah commands inside the configuration file for
> image names, will they be executed when reports are generated?  Just
> hypothetically, like changing
>
> [[[monthrain]]]
>             plot_type = bar
>             yscale = None, None, 0.02
>             [[[[rain]]]]
>                 aggregate_type = sum
>                 aggregate_interval = 86400
>                 label = Rain (daily total)
>
> to something like
>
> [[[monthrain$timestamp]]]
>             plot_type = bar
>             yscale = None, None, 0.02
>             [[[[rain]]]]
>                 aggregate_type = sum
>                 aggregate_interval = 86400
>                 label = Rain (daily total)
>
>
>
> Regarding 3), it seems that RSYNC might do the trick but I have to look
> into it more and also determine if bluehost supports it.
> thanks,
> joe
>
> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to