<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IE10, IE 11 and Proxy in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610094#M57096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am running a JS application using Server 10.1. I have a couple of services that are secured with a user name and password. I have established a proxy that accesses these services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My web application is able to add a polygon to a feature class, and then a user is able to, using a template picker, add related points to the initial polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Feature Class: Farm (polygon)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Feature Class: Animals (point)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am adding animals to a farm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using IE 9, Firefox, and Chrome, after I add an animal I execute queryRelatedRecords on my Farm feature class and my query returns all my related animals, including the one I just added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I use IE 10 or IE 11, I am able to add the animal to the farm but when I execute queryRelatedRecords, I get the initial animal list that I saw when I first opened the map. Again, the animal is added, but if my farm had 2 animals before I added a 3rd, I get 2 animals via the queryRelatedRecords until I close my browser and open it up again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone come across anything similar and have an idea how to fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jun 2014 23:18:24 GMT</pubDate>
    <dc:creator>AlexeiB</dc:creator>
    <dc:date>2014-06-09T23:18:24Z</dc:date>
    <item>
      <title>IE10, IE 11 and Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610094#M57096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am running a JS application using Server 10.1. I have a couple of services that are secured with a user name and password. I have established a proxy that accesses these services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My web application is able to add a polygon to a feature class, and then a user is able to, using a template picker, add related points to the initial polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Feature Class: Farm (polygon)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Feature Class: Animals (point)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am adding animals to a farm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using IE 9, Firefox, and Chrome, after I add an animal I execute queryRelatedRecords on my Farm feature class and my query returns all my related animals, including the one I just added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I use IE 10 or IE 11, I am able to add the animal to the farm but when I execute queryRelatedRecords, I get the initial animal list that I saw when I first opened the map. Again, the animal is added, but if my farm had 2 animals before I added a 3rd, I get 2 animals via the queryRelatedRecords until I close my browser and open it up again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone come across anything similar and have an idea how to fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 23:18:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610094#M57096</guid>
      <dc:creator>AlexeiB</dc:creator>
      <dc:date>2014-06-09T23:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: IE10, IE 11 and Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610095#M57097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would try maybe calling .refresh() on the layer itself. Maybe there's some weird thing going on where the layer is not recognizing there's a new feature added to it so it isn't updating the data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 15:03:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610095#M57097</guid>
      <dc:creator>JustinChmura</dc:creator>
      <dc:date>2014-06-11T15:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: IE10, IE 11 and Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610096#M57098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have done that a few times now with no success. It is almost like my proxy page is caching the initial result and returning that one continuously until I close the browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any experience turning the caching off in the proxy page and / or the aspx page? I have tried PRAGMA tags, cache-control tags as well as including the output cache rule in the proxy site itself. I'd like to compare my approach(es) vs other who may have had the same issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 16:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610096#M57098</guid>
      <dc:creator>AlexeiB</dc:creator>
      <dc:date>2014-06-12T16:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: IE10, IE 11 and Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610097#M57099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using the proxy code from here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/resource-proxy"&gt;https://github.com/Esri/resource-proxy&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 20:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610097#M57099</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2014-06-12T20:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: IE10, IE 11 and Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610098#M57100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you using the proxy code from here?&lt;BR /&gt;&lt;A href="https://github.com/Esri/resource-proxy"&gt;https://github.com/Esri/resource-proxy&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I am. I have declared my referrer in &amp;lt;ProxyConfig&amp;gt; and also added my &amp;lt;serverUrl&amp;gt; to the server I wish to access. One thing I should note is having used the debugger in IE 10, I see that every time I do a queryRelatedRecords I get back a 304 result which means something along the lines of no content has changed. Is there a way I can add some sort of cacheBuster parameter when doing queryRelatedRecords?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 22:54:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610098#M57100</guid>
      <dc:creator>AlexeiB</dc:creator>
      <dc:date>2014-06-12T22:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: IE10, IE 11 and Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610099#M57101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I saw this several times with IE and Silverlight. Nothing I did got that stupid browser to drop that cache - Until - I changed the URL. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added and arbitrary where clause rnd() = sameRND(). And on the url's I added a &amp;amp;rnd=rnd() paramater. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This tricked IE into thinking it was a different URL and made the call properly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 12:13:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610099#M57101</guid>
      <dc:creator>JordanBaumgardner</dc:creator>
      <dc:date>2014-06-13T12:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: IE10, IE 11 and Proxy</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610100#M57102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all for your suggestions. I solved this yesterday and though I would update my post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue was indeed that the request was being cached. I tried everything on the server and my proxy page to make sure the cache was disabled but to no avail. What solved the problem was the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;esri.setRequestPreCallback(function (ioArgs) { &amp;nbsp;&amp;nbsp;&amp;nbsp; if ((ioArgs.url.indexOf("MapServer") &amp;gt; -1) || (ioArgs.url.indexOf("FeatureServer") &amp;gt; -1))&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioArgs.preventCache = true; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just placed that before I load my layers and voila. Having inspected the new request being made, there is a cacheBuster parameter added with every request which changes and thus generates a brand new request. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For an issue of such importance I found the solution evasive to find. Hopefully it helps someone else.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2014 01:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie10-ie-11-and-proxy/m-p/610100#M57102</guid>
      <dc:creator>AlexeiB</dc:creator>
      <dc:date>2014-06-14T01:39:56Z</dc:date>
    </item>
  </channel>
</rss>

