[ka-Map-users] Re: ka-Map-users Digest, Vol 16, Issue 14
justin.george at gmail.com
Thu Aug 10 18:42:26 EDT 2006
If you're using PHP, a simple method that I've had middling success
with is to use the header function to set the cache control before
your ajax is output, like so:
<?php header("Cache-Control: no-store, no-cache, must-revalidate"); ?>
This unfortunately does not always work, as browsers have odd caching
that is non standard.
Also, if you're doing updating like this, consider PG's overlays, as
they are working terrifically for me doing similar things.
> Date: Thu, 10 Aug 2006 15:34:18 -0700 (PDT)
> From: Samuel Doyle <sdoyle_2 at yahoo.com>
> Subject: Re: [ka-Map-users] How to force redraw of kaMap objects under
> To: Samuel Doyle <sdoyle_2 at yahoo.com>, ka-map-users at lists.maptools.org
> Message-ID: <20060810223418.83724.qmail at web82307.mail.mud.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
> I found out this is related to how IE caches AJAX requests and nothing to do with kaMap.
> Thanks, S.D.
> Samuel Doyle <sdoyle_2 at yahoo.com> wrote: Hi,
> I have a list of objects to be updated on the map in a dynamic fashion. This is done via a periodic AJAX request to fetch the updated list, when the list has been retrieved I iterate across it invoking addObjectGeo on the correct object. The problem is that the map does not update properly on IE for these periodic updates. It works fine on Firefox but not IE. Anyone know how to resolve this?
> I have noticed that changing the setting under Tools->Internet Options->Settings->Check for newer versions of pages: to Every visit to the page produces the desired effect. I'm using version 6.0 of IE.
> Thanks, S.D.
More information about the ka-Map-users