ArcGIS JavaScript API: Imagery/WorkingImageryForCaching (MapServer)
Built using the ArcGIS API for JavaScript