AnsweredAssumed Answered

Cached layer won't display.

Question asked by TimSparq on Jul 10, 2012
Latest reply on Jul 11, 2012 by TimSparq
I have created two tiled map service caches on the same machine under the same parent virtual directory.

Ultimately I want to add them both to the same map using the javascript API (code below), however one works and the other doesn't.

I do get an image for the one that doesn't work when using the default rest interface export map so I presume the service is working and the cache is not corrupt.

If I inspect my requests/responses in my browser, the one that does work sends a request that looks something like this:

http://<url that works>/MapServer?f=json&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback


And then a bunch of requests that look like this for the individual tiles:

http://<url that works>/MapServer/tile/7/19331/8249


However when I inspect the requests sent to the service that doesn't work, I only see that first request and even though it gets a response code 200 (it actually gets a 304 response if I'm sending the request over the same extent again, but both services exhibit this behavior), no future requests are sent for the individual tiles.

There are no javascript errors getting reported in the console.

I have rebuilt the cache many times, cleared the rest server cache, restarted iis, etc.

var map, network;        function init() {     var initialExtent = new esri.geometry.Extent({   "xmin":467086.5986925309,"ymin":6902883.906684718,"xmax":470864.85624904605,"ymax":6904045.429841098,"spatialReference":{"wkid":28356}     });         map = new esri.Map("map", {  extent: initialExtent,  logo: false     });          dojo.connect(map, 'onLoad', function(map) {  dojo.connect(dijit.byId('map'), 'resize', map,map.resize);     });       //var url1 = "http://<working url>";     var url1 = "http://<not working url>";       network = new esri.layers.ArcGISTiledMapServiceLayer(url1);     map.addLayer(network);  }

Outcomes