Improve browser cache behavior with tiles (cache more often)
This commit is contained in:
parent
bb40f9b281
commit
a9b9a7c5c6
2 changed files with 12 additions and 21 deletions
|
|
@ -69,7 +69,7 @@ var DynmapTileLayer = L.TileLayer.extend({
|
|||
var tileName = this.getTileName(tilePoint, zoom);
|
||||
var url = this._cachedTileUrls[tileName];
|
||||
if (!url) {
|
||||
this._cachedTileUrls[tileName] = url = this.options.dynmap.getTileUrl(tileName) + '?' + new Date().getUTCMilliseconds();
|
||||
this._cachedTileUrls[tileName] = url = this.options.dynmap.getTileUrl(tileName);
|
||||
}
|
||||
return url;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue