GithubHelp home page GithubHelp logo

caching options about mbtileserver HOT 1 CLOSED

xinyuluo avatar xinyuluo commented on May 26, 2024
caching options

from mbtileserver.

Comments (1)

brendan-ward avatar brendan-ward commented on May 26, 2024

@xinyuluo thanks for the question.

The cache control headers control caching on the client (browser) side, those do not correspond to caching on the server.

At present we have no caching on the server. In the earliest versions of this tool, we had in-memory caching for the most frequently used tiles, but that added unnecessary complexity and we removed it early on. At present, the mbtiles files are effectively one of the best cases for on-disk caches anyway, so there isn't (in my opinion, not validated by testing) much benefit to having a secondary on-disk cache.

Depending on your use case and your server capacity, there may be some benefit to having an in-memory cache for most frequently requested tiles, but you should implement that yourself along with a reverse proxy; it is out of scope for mbtileserver. Our focus is to make this run on servers with tiny amounts of memory, so I don't want to build in an in-memory cache by default.

from mbtileserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.