maptiler / tileserver-php

MBTiles and MapTiler folder hosting with TileJSON, OGC WMTS, UTFGrid interaction and web interface. QGIS & ESRI ArcGIS compatible. Runs on any Apache+PHP webhosting. MapBox Studio Vector Tiles hosting.
http://tileserver.maptiler.com/
568 stars 163 forks source link

Running tileserver-php via Docker on Windows using a bind mount volume makes filemtime() return 0 #148

Open jbaranski opened 4 years ago

jbaranski commented 4 years ago

If filemtime returns 0, the ETag hash is always the same and therefore every file attempted to serve 304's.

If filemtime is run on any file inside the container that's not part of the host mount volume (like /start.sh) it returns the correct value.

Any thoughts on the best way to resolve this? Here are a couple ideas:

If you have any other ideas I'd like to hear them, I would be happy to put together an MR based on what you want to do.