[ka-Map-users] How to disable browser cache ?

Luper Rouch luper.rouch at gmail.com
Thu May 10 15:36:44 EDT 2007


Luper Rouch a écrit :
> Hi all,
>
> I am writing a simple mapserver file editor used in conjunction with
> ka-map : there is a textarea showing the mapserver file contents, and an
> iframe showing it in ka-map. When the user clicks the update button, the
> mapserver file is saved and the ka-map disk cache is cleared.
>
> My problem is that the ka-map iframe has to be manually reloaded to see
> the newly generated /images/ : if I change the layers order the changes
> are visible in ka-map, but if I change e.g. a STYLE color I have to
> reload the iframe. The files in the disk cache reflect the change, so
> this is clearly a browser cache issue.
>
> I tried to put all sorts of meta tags both in the main page and in the
> ka-map iframe, but it has no effect :
> <meta http-equiv="cache-control" content="no-cache" />
> <meta http-equiv="pragma" content="no-cache" />
> <meta http-equiv="cache" content="no store" />
> <meta http-equiv="expires" content="-1" />
>
> I also tried to add a random parameter to the iframe url, still with no
> luck.
I think the problem lies in the cache-related HTTP headers sent by tile.php. As there is no solution without modifying the code, I will move to ka-map-dev.

Luper Rouch




More information about the ka-Map-users mailing list