From 170511a51f6d85bd254dcd994daa9c998860dc7f Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Wed, 3 Jul 2019 10:02:58 -0400 Subject: [PATCH] fix for cache bust in multi export (#318) * fix for cache bust * fix * move comment --- dist/leaflet.distortableimage.js | 2 +- package.json | 2 +- src/DistortableCollection.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/leaflet.distortableimage.js b/dist/leaflet.distortableimage.js index 6d8c73ed6..ebcf90b15 100644 --- a/dist/leaflet.distortableimage.js +++ b/dist/leaflet.distortableimage.js @@ -853,7 +853,7 @@ L.DistortableCollection = L.FeatureGroup.extend({ // repeatedly fetch the status.json updateInterval = setInterval(function intervalUpdater() { - $.ajax(statusUrl, { + $.ajax(statusUrl + "?" + Date.now(), { // bust cache with timestamp type: "GET", crossDomain: true }).done(function(data) { diff --git a/package.json b/package.json index cc1db16a0..856dfa32d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "leaflet-distortableimage", - "version": "0.5.0", + "version": "0.5.1", "description": "Leaflet plugin enabling image overlays to be distorted, stretched, and warped (built for Public Lab's MapKnitter: http://publiclab.org).", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/src/DistortableCollection.js b/src/DistortableCollection.js index e3e0c38df..adf4be087 100644 --- a/src/DistortableCollection.js +++ b/src/DistortableCollection.js @@ -371,7 +371,7 @@ L.DistortableCollection = L.FeatureGroup.extend({ // repeatedly fetch the status.json updateInterval = setInterval(function intervalUpdater() { - $.ajax(statusUrl, { + $.ajax(statusUrl + "?" + Date.now(), { // bust cache with timestamp type: "GET", crossDomain: true }).done(function(data) {