Re: [OSM-talk] Map tiles in Chrome

2011-10-24 Thread David Earl

On 23/10/2011 20:03, Kai Krueger wrote:

David Earl wrote:

So what's going on? If the cache is empty, is the server really serving
an old tile? Is there some proxying going on somewhere (there's no
explicit proxies)? Why is it random which tiles update?


Yes, there is a server side proxy in-between the tileserver to reduce load
on the main timeserver ...


Ah, thanks for that explanation. That explains why pretty much nothing I 
do has any effect.


David


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


Re: [OSM-talk] Map tiles in Chrome

2011-10-23 Thread Kai Krueger

David Earl wrote:
 
 So what's going on? If the cache is empty, is the server really serving 
 an old tile? Is there some proxying going on somewhere (there's no 
 explicit proxies)? Why is it random which tiles update?
 
Yes, there is a server side proxy in-between the tileserver to reduce load
on the main timeserver and it can have these slightly odd updating
behaviors. As the proxy servers don't use an explicit expiry mechanism for
when the rendering server has rendered a new tile, it can serve old tiles if
it was caching them before the rendering.

Which tiles update depend on when they were last viewed by anyone, which
proxy it goes through, when the tile was previously rendered and if the tile
is still in cache.

mod_tile uses a combination of etag-headers based on the md5 of a tile and
on expiry-headers with a prediction of how long mod_tile guesses the tile
might not be updated for and thus can be considered fresh by a proxy without
rechecking for modifications.

Kai


--
View this message in context: 
http://gis.638310.n2.nabble.com/Map-tiles-in-Chrome-tp6917001p6922674.html
Sent from the General Discussion mailing list archive at Nabble.com.

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


Re: [OSM-talk] Map tiles in Chrome

2011-10-23 Thread Andy Robinson
I get this problem too, seems to stick completely even over a day or two
until I clear the relevant cached data. Then it seems to be ok for me. As
you say, seems to be a bigger issue at higher zoom.

Cheers
Andy

 -Original Message-
 From: David Earl [mailto:da...@frankieandshadow.com]
 Sent: 21 October 2011 14:58
 To: osm
 Subject: [OSM-talk] Map tiles in Chrome
 
 I'm very puzzled by Chrome's behaviour with respect to the main Mapnik
 map tiles.
 
 When I'm working on an area, it is very common for a tile not to visibly
 update after refreshing after uploading some changes. Some do, some don't,
 especially at high zoom levels
 
 When I do a status on the tile, it is clear it has been re-rendered.
 It's not that it is stuck in a rendering queue - the renderer has
finished.
 
 If I clear the Chrome cache, it still doesn't drop the old rendering.
 
 If I drop the Chrome cache and restart Chrome it still doesn't let go.
 
 The only way I have found that is certain to display the new tile is:
 1. Right Click on the tile in the home page and choose 'Show image in now
 tab'
 2. Go to the new tab, and hard refresh (CTRL+F5) 3. Restart chrome
 
 (a hard refresh or a click on Permalink after step 2 isn't sufficient).
 
 So what's going on? If the cache is empty, is the server really serving an
old
 tile? Is there some proxying going on somewhere (there's no explicit
 proxies)? Why is it random which tiles update?
 
 More to the point, why should I need to do anything with the
 cache/refreshing etc. Why isn't the date handling from the server telling
 Chrome the tile is out of date? I see the headers have an expiry date with
 the tile, but the old tile seems to persist even beyond that.
 
 David
 
 
 
 ___
 talk mailing list
 talk@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/talk
 
 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 2012.0.1831 / Virus Database: 2092/4569 - Release Date: 10/23/11


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


[OSM-talk] Map tiles in Chrome

2011-10-21 Thread David Earl
I'm very puzzled by Chrome's behaviour with respect to the main Mapnik 
map tiles.


When I'm working on an area, it is very common for a tile not to visibly 
update after refreshing after uploading some changes. Some do, some 
don't, especially at high zoom levels


When I do a status on the tile, it is clear it has been re-rendered. 
It's not that it is stuck in a rendering queue - the renderer has finished.


If I clear the Chrome cache, it still doesn't drop the old rendering.

If I drop the Chrome cache and restart Chrome it still doesn't let go.

The only way I have found that is certain to display the new tile is:
1. Right Click on the tile in the home page and choose 'Show image in 
now tab'

2. Go to the new tab, and hard refresh (CTRL+F5)
3. Restart chrome

(a hard refresh or a click on Permalink after step 2 isn't sufficient).

So what's going on? If the cache is empty, is the server really serving 
an old tile? Is there some proxying going on somewhere (there's no 
explicit proxies)? Why is it random which tiles update?


More to the point, why should I need to do anything with the 
cache/refreshing etc. Why isn't the date handling from the server 
telling Chrome the tile is out of date? I see the headers have an expiry 
date with the tile, but the old tile seems to persist even beyond that.


David



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


Re: [OSM-talk] Map tiles in Chrome

2011-10-21 Thread Frederik Ramm

David,

On 10/21/2011 03:58 PM, David Earl wrote:

So what's going on? If the cache is empty, is the server really serving
an old tile? Is there some proxying going on somewhere (there's no
explicit proxies)? Why is it random which tiles update?


This is unlikely to be the problem but just to be sure - you're not on 
any kind of 3G network or so? Because some of the mobile providers do 
all sorts of nasty things with images embedded in web sites and i 
wouldn't be surprised if that breaks map updates.


Bye
Frederik

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


Re: [OSM-talk] Map tiles in Chrome

2011-10-21 Thread David Earl

On 21/10/2011 15:43, Frederik Ramm wrote:

This is unlikely to be the problem but just to be sure - you're not on
any kind of 3G network or so? Because some of the mobile providers do
all sorts of nasty things with images embedded in web sites and i
wouldn't be surprised if that breaks map updates.


No, it's on 50Mbit Virgin Media cable.

Incidentally, I also see the problem on Safari on iPad (also on the same 
network), though I don't have the same level of control on the cache so 
I cannot fix it at all there.


David



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


Re: [OSM-talk] Map tiles in Chrome

2011-10-21 Thread Toby Murray
Yeah, I've seen weird behavior in Chrome too. It used to be very good
about refreshing tiles a few months ago but then it seems like
something changed. Although I thought dropping the cache was good
enough to force mine to get fresh tiles. Don't know that I've tried
recently. I just use Opera when I want to see updated tiles. If you
open a tile in a new tab and refresh it, the new version immediately
gets displayed in the slippy map too.

Toby

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


Re: [OSM-talk] Map tiles in Chrome

2011-10-21 Thread Stefan de Konink
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Op 21-10-11 17:39, Toby Murray schreef:
 Yeah, I've seen weird behavior in Chrome too. It used to be very
 good about refreshing tiles a few months ago but then it seems
 like something changed.

What is mod_tile using for content expiration? Etags? Expires?


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

iEYEAREKAAYFAk6hljYACgkQYH1+F2Rqwn38iwCfUJ0KEOXRWk+uldnOP5G/WTp1
SH0AoI15NIv+goA2KZ8Hlz5VHNt6LiW5
=V1hL
-END PGP SIGNATURE-

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