<?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 Re: FeatureLayer Refresh in v4.9 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603963#M56554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was still seeing this issue in 4.10 with a refresh interval on a feature layer and unique value rendererer.&amp;nbsp; The layer wasn't updating correctly until I added a request interceptor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;request&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;interceptors&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;push&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;urls:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Farcgisserver%2Farcgis%2Frest%2Fservices%2FDevelopment%2Ftestservice%2FMapServer%2F1" rel="nofollow" target="_blank"&gt;https://arcgisserver/arcgis/rest/services/Development/testservice/MapServer/1&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;before&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;params&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;params&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;requestOptions&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;cacheBust&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2019 16:46:16 GMT</pubDate>
    <dc:creator>Jay_Gregory</dc:creator>
    <dc:date>2019-01-10T16:46:16Z</dc:date>
    <item>
      <title>FeatureLayer Refresh in v4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603957#M56548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to refresh the FearureLayer and it is not working and on top of that it is heavily cached as the FeatureLayer data is updated every 2-3 minutes but it's not reflecting back in the browser when we refresh it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you guys let me know how can I achieve the "cacheBust: true" in the esriRequest? I am not able to achieve it from the following documentatin&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions"&gt;request | API Reference | ArcGIS API for JavaScript 4.9&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 15:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603957#M56548</guid>
      <dc:creator>RavinderBhatia</dc:creator>
      <dc:date>2018-10-31T15:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer Refresh in v4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603958#M56549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravinder,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;FeatureLayer refreshinterval is broken in 4.9 it will be fixed in 4.10.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/222899-featurelayer-refreshinterval-is-broken-in-49#comment-807136" title="https://community.esri.com/thread/222899-featurelayer-refreshinterval-is-broken-in-49#comment-807136"&gt;https://community.esri.com/thread/222899-featurelayer-refreshinterval-is-broken-in-49#comment-807136&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603958#M56549</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-05T14:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer Refresh in v4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603959#M56550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feature layer refresh interval is working fine now after we changed to v4.10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one more issue we are having, the response for each refresh is status 304 and data is all cached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/432034_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;We are updating the data using FeatureServer/addFeatures API Post call. When we do a FeatureLayer query call we can see the updated data but not when the layer is refreshed.&lt;/P&gt;&lt;P&gt;In older version 3.23 we fixed the caching issue from the link below by using "preventCache = true"&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/49024"&gt;https://community.esri.com/thread/49024&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to prevent caching in 4.10?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 18:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603959#M56550</guid>
      <dc:creator>RavinderBhatia</dc:creator>
      <dc:date>2018-12-19T18:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer Refresh in v4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603960#M56551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not looked into that. I would guess that you could use esriConfig.request.interceptors to fix that:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 19:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603960#M56551</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-12-19T19:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer Refresh in v4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603961#M56552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it update when you call FeatureLayer.applyEdits(..) instead?&amp;nbsp; Maybe using the 'cacheBust' parameter in a &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor"&gt;RequestInterceptor&lt;/A&gt;&amp;nbsp;might help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 19:19:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603961#M56552</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2018-12-19T19:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer Refresh in v4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603962#M56553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert and John!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have not tried either options, I will try&amp;nbsp;and see if that helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 19:26:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603962#M56553</guid>
      <dc:creator>RavinderBhatia</dc:creator>
      <dc:date>2018-12-19T19:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer Refresh in v4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603963#M56554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was still seeing this issue in 4.10 with a refresh interval on a feature layer and unique value rendererer.&amp;nbsp; The layer wasn't updating correctly until I added a request interceptor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;request&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;interceptors&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;push&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;urls:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Farcgisserver%2Farcgis%2Frest%2Fservices%2FDevelopment%2Ftestservice%2FMapServer%2F1" rel="nofollow" target="_blank"&gt;https://arcgisserver/arcgis/rest/services/Development/testservice/MapServer/1&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;before&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;params&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;params&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;requestOptions&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;cacheBust&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:46:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603963#M56554</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2019-01-10T16:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer Refresh in v4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603964#M56555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not working for me. I have a Feature Layer with a UniqueValueRenderer, tried featurelayer.refresh() or the refresh interval, tried the request interceptor above, not working. I still have to manually zoom in and out for the layer to refresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 16:32:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603964#M56555</guid>
      <dc:creator>MatthieuThery1</dc:creator>
      <dc:date>2019-01-29T16:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer Refresh in v4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603965#M56556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried Jay's suggestion&amp;nbsp;&lt;SPAN style="color: #9cdcfe; background-color: #1e1e1e; border: 0px; font-size: 14px;"&gt;params&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; background-color: #1e1e1e; border: 0px; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; background-color: #1e1e1e; border: 0px; font-size: 14px;"&gt;requestOptions&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; background-color: #1e1e1e; border: 0px; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe; background-color: #1e1e1e; border: 0px; font-size: 14px;"&gt;cacheBust&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; background-color: #1e1e1e; border: 0px; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; background-color: #1e1e1e; border: 0px; font-size: 14px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4; background-color: #1e1e1e; border: 0px; font-size: 14px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6; background-color: #1e1e1e; border: 0px; font-size: 14px;"&gt;true&lt;/SPAN&gt; but it is not working for me either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 23:01:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603965#M56556</guid>
      <dc:creator>RavinderBhatia</dc:creator>
      <dc:date>2019-02-12T23:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer Refresh in v4.9</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603966#M56557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jay! I'm still having the same issue, I think&amp;nbsp;it only&amp;nbsp;adds a "preventCache=someRandomNumber" to one of the first requests but not the layer refresh interval which I'm trying every 10 seconds.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 23:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-refresh-in-v4-9/m-p/603966#M56557</guid>
      <dc:creator>RavinderBhatia</dc:creator>
      <dc:date>2019-02-12T23:04:08Z</dc:date>
    </item>
  </channel>
</rss>

