<br><br><div class="gmail_quote">2009/3/18 Stefan de Konink <span dir="ltr"><<a href="mailto:stefan@konink.de">stefan@konink.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Jon Burgess wrote:<br>
> On Wed, 2009-03-18 at 00:48 +0100, Stefan de Konink wrote:<br>
>> Dane Springmeyer wrote:<br>
>>> I should stress though that Mod_tile is the optimal solution for tile<br>
>>> rendering for most OSM related purposes.<br>
>> I wonder if an Apache module is able to provide caching. I doubt it can,<br>
>> thus requires more bandwidth right?<br>
><br>
> Yes it does caching. What make you think it can not?<br>
<br>
</div>I am talking about client side caching. So a client says... hey I have<br>
an expire thingie or i have an e-tag should I refetch it?<br>
</blockquote><div><br>Here are the headers for a request and response for a single tile...<br> </div></div>GET /16/54640/26982.png HTTP/1.1<br>Host: <a href="http://b.tile.openstreetmap.org">b.tile.openstreetmap.org</a><br>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7<br>Accept: image/png,image/*;q=0.8,*/*;q=0.5<br>Accept-Language: en,en-gb;q=0.5<br>Accept-Encoding: gzip,deflate<br>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7<br>
Keep-Alive: 300<br>Connection: keep-alive<br>Referer: <a href="http://www.informationfreeway.org/">http://www.informationfreeway.org/</a><br><br>HTTP/1.x 200 OK<br>Date: Wed, 18 Mar 2009 02:54:03 GMT<br>Server: Apache/2.2.4 (Ubuntu)<br>
Etag: "b3431afd380b6449ac17e631eef4536d"<br>Content-Length: 5338<br>Cache-Control: max-age=8987<br>Expires: Wed, 18 Mar 2009 05:23:50 GMT<br>Keep-Alive: timeout=3, max=100<br>Connection: Keep-Alive<br>Content-Type: image/png<br>
<br>So, it returns an Etag header, a cache-control header giving an approx 2.5hr max-age and an Expires header also giving the same 2.5hr age... Looks good to me :)<br><br>d<br>