From 56fe255b24b1163d3a0ddb2aaebed71a5478be46 Mon Sep 17 00:00:00 2001 From: john gravois Date: Wed, 10 May 2017 16:25:07 -0700 Subject: [PATCH] add option to bust cache --- src/Layers/DynamicMapLayer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Layers/DynamicMapLayer.js b/src/Layers/DynamicMapLayer.js index 52aa429ca..2d416a617 100644 --- a/src/Layers/DynamicMapLayer.js +++ b/src/Layers/DynamicMapLayer.js @@ -158,6 +158,11 @@ export var DynamicMapLayer = RasterLayer.extend({ params.proxy = this.options.proxy; } + // use a timestamp to bust server cache + if (this.options.disableCache) { + params._ts = Date.now(); + } + return params; },