[Geomoose-users] force GeoMOOSE site refresh

Jim Klassen klassen.js at gmail.com
Fri Feb 24 17:13:34 EST 2012


Are you talking about refreshing immediately when the mapbook is updated or just making sure that when the user reloads that they see the most recent mapbook?

The first would be tricky and probably involve message queues (AMQP).

The latter was done once upon a time by adding a dummy parameter to the request (moosetime) that was different every time, which effectively defeated caching for that file.

I don't know that apache will help since now php is serving the mapbook.  Maybe getmapbook.php could set Etag and/or other pragma cache headers.  This doesn't mean browsers will follow them though.

The part that puzzles me is why sometimes on reload the browser updates the mapbook and sometimes doesn't.  However if you browse to the mapbook URL it will generally request the mapbook again, after which a geomoose reload will reflect the updated mapbook. This trick is more useful for developers than users though.


On Feb 24, 2012, at 15:50, Mark Volz <MarkVolz at co.lyon.mn.us> wrote:

> Hello,
>  
> How can I force clients to refresh GeoMOOSE whenever changes are made to the mapbook?  I would like to cache as much of the site as possible, but I also want to make sure users will see new changes.  Does anyone have any strategies to do this when using Apache web server?
>  
> Thanks
>  
> Mark Volz
> GIS Specialist
>  
>  
>  
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120224/e09accda/attachment.html


More information about the Geomoose-users mailing list