[OpenLayers-Dev] Some of the WMS tiles not getting refreshed

Christopher Schmidt crschmidt at metacarta.com
Mon Sep 3 16:44:44 EDT 2007


On Mon, Sep 03, 2007 at 09:24:25PM +0530, louvy.joseph at gmail.com wrote:
> Has anybody seen this behavior? I have lot of dynamic content on the 
> server (i.e. geoserver); hence the WMS content is supposed to change all 
> the time. When I refresh my WMS layer, 5% of the time, some of the tiles 
> don't get refreshed. And these tiles are random. Rest of the tiles get 
> refreshed fine.
> 
> Has anybody seen this behavior? What could be happening? When I look at 
> the WMS requests in my firebug, browser doesn't seem to generate the WMS 
> tile requests in the first place (but I could be wrong on this fact).
> 
> Any tips appreciated on how to debug? (I don't have any tilecache 
> configured. It is plain geoserver to openlayers configuration. BTW, I 
> don't have a public facing example to publish to the mailing list)

Browsers tend to assume that the content in a given URL hasn't changed
for longer than they should. Override your getURL function and make it
append a random=Math.random():
http://openlayers.org/pipermail/users/2007-January/000615.html is close,
but if you wnat 'constant' refresh, you'll have to do a bit more
legwork.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list