Geoprocessing Hangs In Internet Explorer

2754
1
09-11-2015 04:05 AM
EduardLepner1
New Contributor

Hi!

We're running geoprocessor from JS in our project using Geoprocessor.submitJob function.

What Geoprocessor class does:

  1. Posts job on ArcGIS Server
  2. Each second checks the status of this job
  3. Returns result when job status is success.

BUT IE stops checking on 2nd step because geoprocessor uses same url each time to check the status like https:/yourarcgis.company.com/arcgis/rest/services/Viewer/GpToolName/GPServer/ToolName/jobs/j05436c7...

It means that the procedure never ends because the query result falls into cache and IE doesn't make query and returns 'esriJobExecuting' status. I checked that and saw that there was no real queries to the server.

However everything works fine with other browsers. Is there any way to prevent caching?

Now I'm using the following approach to modify URL parameter but it's a bit dirty solution which I don't like:

window.require(["esri/request"], function (esriRequest) {

    esriRequest.setRequestPreCallback(function (ioArgs) {

        //Prevent IE from caching queries to check status URL. Just additional parameter to the query to status URL.

        if (cacheBust) {

            ioArgs.url += '&buster=' + new Date().getTime();

        }

        return ioArgs;

    });

});

0 Kudos
1 Reply
FredSpataro
Occasional Contributor III

Hi,

I'm seeing the same issue.  We're using the proxy to access secure services as well.  Has anyone figured out a better, more appropriate solution?

Thanks

Fred

0 Kudos