I posted this on the ESRI forum a while back but got no response.
PROBLEM: GetImageUrl is called twice resulting in two trips to the server if caching is off.
QUESTION: How can this be prevented (other than turn browser caching on)?
HOW TO REPRODUCE:
- Go to any sample with a dynamic layer (e.g. http://help.arcgis.com/en/webapi/javascript/arcgis/demos/layout/layout_mapcontainersplitinthree.html)
- Run a tool like fiddler2 to monitor IP traffic
- Resize the browser
Notice that two identical requests are sent:
- "http://server.arcgisonline.com/ArcGI...%2C506&f=image"
- "http://server.arcgisonline.com/ArcGI...%2C506&f=image"
A single call to map._resize results in getImageUrl being called twice (once for the resize and once for the change of extent).
I am looking for a way to eliminate the redundant call with a minimal amount of coding.