I received a cache folder created from a MXD that I don't possess. Then I was asked to publish that cache as a map service. To do that, I created a map service using a MXD (I created) that contains one layer. That layer has no relation with the cache. Then I configured the map service to use the cache I was given.
In a !flex application, when I use the map service using esri:ArcGISDynamicMapServiceLayer, it works : I get on the map what the cache contains, not what the MXD contains.
I'm a little confused. ArcGISDynamicMapServiceLayer is not supposed to read from the cache of the service! Only ArcGISTiledMapServiceLayer is supposed to be able to read from the cache. Am I wrong?
Why do I get the cached data on the map instead of the MXD data (which is different from the cache)?
Here is a simple graphic explaining the situation.