AnsweredAssumed Answered

Layer List Cache Not Refreshing

Question asked by lieberg5@uwm.edu on May 8, 2017

I have a web map with 5 layer list widgets running because I wanted to categorize out the different layers I have. It overall works well and has been well received, but I'm having an issue with the layer lists caching when I update the map with a new layer despite updating the config files accordingly. For example, as a test, I set two layers to false, but they are still in the list until I clear my cache. UWM Transportation Services Map and added the 1.1 ver detail to the body of the index.html file.

         <!-- ver 1.1 details added to fix browser cache issue -->
        <script src="env.js?ver=1.1"></script>
        <script type="text/javascript" src="simpleLoader.js?ver=1.1"></script>
        <script type="text/javascript" src="init.js?ver=1.1"></script>

 

I followed this thread: How to force a browser cache refresh after updating WAB app  and added the nocache.appache file and

Outcomes