Tile Cache Time

View: New views
5 Messages — Rating Filter:   Alert me  

Tile Cache Time

by Bernhard Zwischenbrugger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
talk mailing list
talk@...
http://lists.openstreetmap.org/listinfo/talk

Re: Tile Cache Time

by Peter Körner-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Maybe you can set up a proxy, cache the tiles for yourself or feth them
directly from tile.openstreetmap.org, just manipulating the headers..

Peter

_______________________________________________
talk mailing list
talk@...
http://lists.openstreetmap.org/listinfo/talk

Re: Tile Cache Time

by Bernhard Zwischenbrugger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peter Körner wrote:
>> Is there a tile server with longer Cache max-age available.
>> To setup my own tile server is not possible at the moment.
>>    
>
> Maybe you can set up a proxy, cache the tiles for yourself or feth them
> directly from tile.openstreetmap.org, just manipulating the headers..
>
>  
Thanks for the hint. The problem now is, that iPhone ignores
Cache-Control. :-(

Bernhard

_______________________________________________
talk mailing list
talk@...
http://lists.openstreetmap.org/listinfo/talk

Re: Tile Cache Time

by Stefan de Konink-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

bernhard schreef:
> Thanks for the hint. The problem now is, that iPhone ignores
> Cache-Control. :-(

Maybe complaining at Apple helps, or just installing another browser :)


Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkr4UqoACgkQYH1+F2Rqwn1P0ACeNfqw5gctNpoph9232Frzz4rV
VhsAn1ygG0y1zrjTf9if4K60JAQMe/EC
=S69w
-----END PGP SIGNATURE-----

_______________________________________________
talk mailing list
talk@...
http://lists.openstreetmap.org/listinfo/talk

Re: Tile Cache Time

by Bernhard Zwischenbrugger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi
>> Thanks for the hint. The problem now is, that iPhone ignores
>> Cache-Control. :-(
>>    
>
> Maybe complaining at Apple helps, or just installing another browser :)
>  
The iPhone Safari is an excellent  browser.  Zoom speed is much better
than  Firefox has.
The  3D CSS extension  uses openGL (or somthing similar) and is useable
for high speed transformations - also 2D transformations.

Also Chrome and Safari have this 3d CSS extension and really fast zoom
ist possible.

Loading the images in correct order is a problem, hopefully I will find
a solution.
FF und IE have better possibilities to cancel image loading ...
But only webkit browsers are fast and that's the thing I like.

http://tinyurl.com/ykvg2kq

Bernhard



_______________________________________________
talk mailing list
talk@...
http://lists.openstreetmap.org/listinfo/talk