[OSM-talk] Tile Cache Time

bernhard bz at datenkueche.com
Sun Nov 8 21:56:56 GMT 2009


Hi all

I'm working on an iPhone Safari map:

http://tinyurl.com/ykvg2kq

(basic support for Safari and Chrome)

It has multitouch support and works quiet nice.
But there is a big problem with image loading.
Images are loading very slow.
If images already started to load, the image load process is not cancelable.

When the images are loaded the map works speedy.
If the browser cache has lots of information the map is about same speed 
as google maps.

For my iPhone map it would be nice to have a fast tile server with an 
extra long Cache-Control:max-age value.
Cyclemap has a bit longer Cache max-age, but the server is slow.

Is there a tile server with longer Cache max-age available.
To setup my own tile server is not possible at the moment.


==== Google vs. OSM Cache times ====

HEAD http://c.tile.openstreetmap.org/9/253/169.png
200 OK
Cache-Control: max-age=19540
Connection: close
Date: Sun, 08 Nov 2009 22:43:36 GMT
ETag: "8bbd152bfe02e1b84cc729b27d93294a"
Server: Apache/2.2.8 (Ubuntu)
Content-Length: 21831
Content-Type: image/png
Expires: Mon, 09 Nov 2009 04:09:16 GMT
Client-Date: Sun, 08 Nov 2009 21:40:49 GMT
Client-Peer: 128.40.168.104:80
Client-Response-Num: 1



HEAD "http://mt1.google.com/vt/lyrs=m@112&hl=en&x=3&y=6&z=4&s=Galileo"
200 OK
Cache-Control: public, max-age=22222222
Connection: close
Date: Sun, 08 Nov 2009 22:35:18 GMT
Age: 924
Server: maptiles-versatile
Content-Length: 0
Content-Type: image/png
Client-Date: Sun, 08 Nov 2009 21:47:42 GMT
Client-Peer: 74.125.87.136:80
Client-Response-Num: 1
X-Content-Type-Options: nosniff
X-XSS-Protection: 0



thanks

Bernhard




More information about the talk mailing list