cache Openstreetmap and Openfreemap tiles via Nginx

Turbovix last year

Hello everyone, does anyone know if it is possible to cache tiles from Openstreetmap and Openfreemap layers via Nginx?

Anton Tananaev last year

I don't see why not, but what is the goal?

Turbovix last year

Hi Anton, I'm trying to reduce server resources.

Anton Tananaev last year

Not sure I understand. Caching it on your server will require more resources, not less.

Turbovix last year

It depends on which feature we are talking about.

Turbovix last year

I received an email from Google Cloud saying that the resource was reaching its limit. However, nothing changed, however Google said that access to the platform generated this traffic.

Anton Tananaev last year

Unfortunately it makes less and less sense to me. Why would Google Cloud care about how much OSM traffic you're using when it doesn't even go through them?

Turbovix last year

Sorry, I really don't know how to discuss or address this issue with you. I believed that the biggest cost in relation to the service itself was the number of devices and the frequency of data sent. When I disabled Google Maps it significantly reduced the resources. So I'm trying to minimize the resources.

Anton Tananaev last year

You never mentioned anything about Google Maps. You only said OSM and OpenFreeMap, both of which are free and don't have any limitations.

If you're asking about caching Google tiles, that's an entirely different story and it's likely against their terms of service.

Turbovix last year

Anton, you're right. However, I thought that if I did this with open source maps it would already reduce some of the costs. Unfortunately, I live in Brazil, and the tax burden here is quite high. I apologize, since this issue has nothing to do with the alleged problem. Google Maps makes this difficult, so it's not the problem.

Turbovix last year

I'm looking for a way to lower costs.

Anton Tananaev last year

How do you reduce cost by cashing tiles that are free? And how is it related to taxes?