esri.setRequestPreCallback not firing on MapServer export request

Discussion created by bdaigle on Aug 16, 2013
Latest reply on Aug 16, 2013 by bdaigle
I am trying to add a token to my map service requests using esri.setRequestPreCallback.  This seems to work fine for fetching info from the rest services page, but for some reason the function doesn't fire when the image is requested.

Here is a jsFiddle that illustrates the problem:

You will notice that the callback fires when the layer created, but not when the layer is added to the map.  Nor does it fire if f you pan the map.

Any thoughts?