Caching of WMTS Tiles
|Reported by:||gsommer||Owned by:|
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