On Wednesday, May 12, 2010, Nathan Gerber <[email protected]> wrote: > I have found that the most reliable way to avoid browser caching when I want > to force a redraw of a WMS layer is to do something like this: > wms_layer.mergeNewParams({'timestamp':datetime}); > > If you append the current timestamp to the layer each time you want to do a > redraw it will have a unique address and thus bypass browser caching. If you > do this you will not need to utilize the OpenLayers redraw function.
redraw(true) calls mergeNewParams but uses Math.random instead of datetime. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
