state-hiu / ittc-server-django

Front-End ITTC Server with Proxy, Cache, Logs, and Stats
MIT License
0 stars 3 forks source link

Tile Expiration #6

Open state-hiu opened 9 years ago

state-hiu commented 9 years ago

Tile Expiration Options:

Links: http://en.wikipedia.org/wiki/HTTP_ETag http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html http://stackoverflow.com/questions/415511/how-to-get-current-time-in-python http://www.mobify.com/blog/beginners-guide-to-http-cache-headers/

state-hiu commented 9 years ago

Response Headers for OSM Tile at http://a.tile.openstreetmap.org/12/1171/1566.png

Cache-Control:max-age=111395 Date:Fri, 09 Jan 2015 12:46:18 GMT ETag:"ae706b98a6681f1bcb78f7df80418712" Expires:Sat, 10 Jan 2015 19:42:53 GMT Server:Apache/2.2.22 (Ubuntu) Via:1.1 stormfly-02.openstreetmap.org:3128 (squid/2.7.STABLE9) X-Cache:MISS from stormfly-02.openstreetmap.org X-Cache-Lookup:HIT from stormfly-02.openstreetmap.org:3128