Opened 12 years ago

Closed 12 years ago

#895 closed defect (invalid)

Caching of WMTS Tiles

Reported by: gsommer Owned by: sac@…
Priority: normal Milestone:
Component: SysAdmin Keywords:
Cc:

Description

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

Change History (1)

comment:1 by warmerdam, 12 years ago

Resolution: invalid
Status: newclosed

This belongs in the OpenLayers bug tracker, not the OSGeo Trac which is for general foundation services, not specific software projects.

Note: See TracTickets for help on using tickets.