From 1d7cf4c2476cfb1d6be767ed24f5f7f38380a6d0 Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Thu, 25 Oct 2018 22:23:54 +0100 Subject: [PATCH] Use revision id in data-layer tile request --- app/src/frontend/map.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/frontend/map.js b/app/src/frontend/map.js index d686f633..a1fb294e 100644 --- a/app/src/frontend/map.js +++ b/app/src/frontend/map.js @@ -80,8 +80,10 @@ class ColouringMap extends Component { like: 'likes', } const data_tileset = tileset_by_cat[cat]; + // pick revision id to bust browser cache + const rev = this.props.building? this.props.building.revision_id : ''; const dataLayer = data_tileset? - + : null; // highlight