Re: [OSM-dev] Caching tiles and expiry header

2010-07-09 Thread Moataz Elmasry
So I did something similar to what you suggested. I copied all headers from the original response and changed the headers: Expires and Content-Length. I get |MISS from konqi.openstreetmap.org in X-Cache, where it should have been HIT| Mathieu Arnold wrote: +--On 5 juillet 2010 17:27:03

Re: [OSM-dev] Caching tiles and expiry header

2010-07-08 Thread Moataz Elmasry
Mathieu Arnold wrote: +--On 5 juillet 2010 17:27:03 +0200 Moataz Elmasry zaza185198...@googlemail.com wrote: | Hello List | | I use http://tile.openstreetmap.org/${z}/${x}/${y}.png to display the map | in my web application | I use a filter mechanism in the servlet, where an expiry header and

[OSM-dev] Caching tiles and expiry header

2010-07-05 Thread Moataz Elmasry
Hello List I use http://tile.openstreetmap.org/${z}/${x}/${y}.png to display the map in my web application I use a filter mechanism in the servlet, where an expiry header and maximum age headers are added to the image requests, so that they will be cached for a while on the client browser.

Re: [OSM-dev] Caching tiles and expiry header

2010-07-05 Thread Stefan de Konink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Op 05-07-10 17:27, Moataz Elmasry schreef: Is there a way to force the browser to load the images from its cache if available? Probably mod_tile implemented something like content disposition. Next to that you have another issue, that is, the

Re: [OSM-dev] Caching tiles and expiry header

2010-07-05 Thread Mathieu Arnold
+--On 5 juillet 2010 17:27:03 +0200 Moataz Elmasry zaza185198...@googlemail.com wrote: | Hello List | | I use http://tile.openstreetmap.org/${z}/${x}/${y}.png to display the map | in my web application | I use a filter mechanism in the servlet, where an expiry header and | maximum age headers

Re: [OSM-dev] Caching tiles and expiry header

2010-07-05 Thread Jochen Topf
On Mon, Jul 05, 2010 at 05:34:55PM +0200, Stefan de Konink wrote: Op 05-07-10 17:27, Moataz Elmasry schreef: Is there a way to force the browser to load the images from its cache if available? Probably mod_tile implemented something like content disposition. Next to that you have another

Re: [OSM-dev] Caching tiles and expiry header

2010-07-05 Thread Stefan de Konink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Op 05-07-10 18:17, Jochen Topf schreef: On Mon, Jul 05, 2010 at 05:34:55PM +0200, Stefan de Konink wrote: Op 05-07-10 17:27, Moataz Elmasry schreef: Is there a way to force the browser to load the images from its cache if available? Probably