Feature Layer not drawing after refreshing the browser

2410
1
10-14-2015 05:07 PM
IanPeebles
Occasional Contributor III

I think I have narrowed down the problem of not being able to see my feature layer appear after the browser is refreshed.  The issue is with caching.  If I have the browser open, my feature layer appears.  If I clear the cache, then refresh the browser, the feature layer re-appears.

Is there a way to clear the cache within  the application, so the feature layer always appears if the browser is refreshed?

I tried some of these tags, but they do not work:

<meta http-equiv="Cache-Control" content="no-store">

This is not an issue when using dynamic map services.  The feature layer however is an issue.

How can I clear the cache for the application to allow my feature layer to draw all the time without having to clear the cache?

Any input is greatly appreciated.  Thank you!

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Ian,

   Here is a thread that gives ways to disable client caching for FeatureLayers

Disable Caching on FeatureLayer.refresh()

0 Kudos