[SAC] [OSGeo] #895: Caching of WMTS Tiles
OSGeo
trac_osgeo at osgeo.org
Mon May 7 09:06:33 EDT 2012
#895: Caching of WMTS Tiles
---------------------------+------------------------------------------------
Reporter: gsommer | Owner: sac@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords:
---------------------------+------------------------------------------------
Hi,
when comparing WMTS performance between OpenLayers and Leaflet using the
same WMTS service (http://openlayers.org/dev/examples/mobile-wmts-
vienna.html, http://sindre.at/wienmap/), the Leaflet Application seems to
cache tiles, so that when zooming or panning back to a previous extent the
background map displays nuch faster.
When looking at it with Firebug Net tab you can see, that there are no
requests sent to the server i.e. when zooming in and out in the same
position.
I found out, that if I change transitionEffect: "null" to
transitionEffect: "resize" in the labels layer of mobile-wmts-vienna.js, I
get a similar effect in the OpenLayers example (though this does not look
very good). When the labels layer is active with transitionEffect: "null",
then Firefox ignores the tile cached in the browser and sends a request to
the server using the max-age=0 Cache-Control header.
Is this by design for some reason, or is it a bug?
What could be done to make OpenLayers WMTS perfom as good as Leaflet?
Best Regards,
Gerhard
--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/895>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.
More information about the Sac
mailing list