Hi,

I have my own OSM server in use, which I created according to the following instructions. https://switch2osm.org/manually-building-a-tile-server-18-04-lts/

Everything works fine, but I don't find a place where I can increase the value of the Tile caches. According to the HTTP Response Header the Cache for the Tiles are only Cached for about 5 Hours.

Response Header: Cache-Control: max-age=18065

At which point can I adjust this value so that the tiles are cached longer?

Thanks Hans

asked 04 Mar '19, 11:29

Tiblak1's gravatar image

Tiblak1
16112
accept rate: 0%


The mod_tile configuration offers a multitude of options to control caching duration: https://github.com/openstreetmap/mod_tile/blob/master/debian/tileserver_site.conf#L51-L111

Note that all this does not control how long a meta tile is cached on the server (meta tiles do not expire, ever) - it only controls how long the client is going to treat a response as up-to-date.

permanent link

answered 04 Mar '19, 11:33

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
73.3k866641137
accept rate: 24%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×5

question asked: 04 Mar '19, 11:29

question was seen: 543 times

last updated: 04 Mar '19, 11:33

powered by OSQA