Select to view content in your preferred language

How do you disable client caching in L.esri.Layers.DynamicMapLayer?

4428
1
12-22-2015 02:56 PM
Labels (1)
JeffGermain
Emerging Contributor

Running into a browser caching issue with Esri's leaflet api.  Need something similar to the ArcGIS API for javascript.

ArcGISDynamicMapServiceLayer | API Reference | ArcGIS API for JavaScript

 

Thanks!

 

Jeff

Tags (1)
0 Kudos
1 Reply
JohnGravois
Deactivated User

it looks like the jsapi is just adding a unique throwaway parameter '_ts' and setting it with a timestamp to dirty up their requests.

we could do the same thing here:

var params = {
  _ts: Date().now(),
  bbox: [sw.x, sw.y, ne.x, ne.y].join(','),
  // ...
};

if you can log an issue in our repository in github, i'd be happy to help.

0 Kudos