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.
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
Feature layer refresh interval is working fine now after we changed to v4.10.
There is one more issue we are having, the response for each refresh is status 304 and data is all cached.
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.
In older version 3.23 we fixed the caching issue from the link below by using "preventCache = true"
Is there a way to prevent caching in 4.10?
I was still seeing this issue in 4.10 with a refresh interval on a feature layer and unique value rendererer. The layer wasn't updating correctly until I added a request interceptor
Thanks Jay! I'm still having the same issue, I think it only adds a "preventCache=someRandomNumber" to one of the first requests but not the layer refresh interval which I'm trying every 10 seconds.
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.