Skip to content

Commit

Permalink
fix for cache bust in multi export (#318)
Browse files Browse the repository at this point in the history
* fix for cache bust

* fix

* move comment
  • Loading branch information
jywarren authored Jul 3, 2019
1 parent d934714 commit 170511a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/leaflet.distortableimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/DistortableCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 170511a

Please sign in to comment.