[OpenLayers-Dev] Some of the WMS tiles not getting refreshed
Cameron Shorter
cameron.shorter at gmail.com
Mon Sep 3 17:04:36 EDT 2007
Yes, we had this problem in Mapbuilder and added a ×tamp=122233 to
the end of the URL.
Christopher Schmidt wrote:
> 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,
>
--
Cameron Shorter
Systems Architect, http://lisasoft.com.au
Tel: +61 (0)2 8570 5050
Mob: +61 (0)419 142 254
More information about the Dev
mailing list