I'm trying to optimize the load time of a mapping project using QGIS server and Openlayers 4 and have a question about browser cache.

PNG tiles from tile data with URLs in XYZ format get cached correctly and show up in the Networking tab with Status Code 304 Not Modified.

But tiles from a WMS server get requested every time (Status Code 200 OK) and don't get cached by the browser. The request URL doesn't change and looks like that:


Any chance to cache this tiles in the browser so they don't get requested each time from WMS server?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.