Daniele
Daniele

Reputation: 85

Cache OpenLayers3 Tiles server side

I'm developing a website that display a map using OpenLayers3 API. I know that most of requests will refer to a specific location so I'm wondering if it's possible to save server-side the Tiles of that region, in order to reduce calls to OpenStreetMap that sometimes is slow. Thanks in advance!

Upvotes: 0

Views: 413

Answers (1)

Thomas Gratier
Thomas Gratier

Reputation: 2371

Yes, you can. There are several solutions

  1. You can try dedicated software called more or less "map tiles proxy"

  2. You can reuse your existing web server

    You will tweak it for the intent of caching map tiles (Nginx recipe, did not found one out of the box for Apache)

  3. You can use what we call "reverse proxy" like Varnish. See a recipe for this.

Upvotes: 4

Related Questions