How to prevent chrme caching when I modify various Widget.js files?

142
2
Jump to solution
11-19-2020 12:23 AM
Labels (1)
Occasional Contributor III

I'm developing custom widgets for WAB (Develper Edtion) 2.17, Launchpad Theme, on 3D Scenes (ArcGIS API for javascript 4.17), on our compamy portal (version 10.7.1)

The application I'm developing is being run by our company customers, from url pointing to application folders tree in our company portal server.

When I'm updating some Widget.js files, I want the user to to continue using the old url. So, how can I ensure that chrome will always use the new Widget.js files and not the older ones that are already in the chrome cache?

Help will be greatly appreciated,

Michael

Reply
0 Kudos
1 Solution

Accepted Solutions
MVP Esteemed Contributor

Michael,

 

   This will require you to read the suggestions to possible solution in this thread and determine how you will implement the suggestions.

https://community.esri.com/t5/arcgis-web-appbuilder-questions/refreshing-web-appbuilder/m-p/104317

 

I would not specifically at this reply. https://community.esri.com/t5/arcgis-web-appbuilder-questions/refreshing-web-appbuilder/m-p/104317/h...

 

View solution in original post

2 Replies
MVP Esteemed Contributor

Michael,

 

   This will require you to read the suggestions to possible solution in this thread and determine how you will implement the suggestions.

https://community.esri.com/t5/arcgis-web-appbuilder-questions/refreshing-web-appbuilder/m-p/104317

 

I would not specifically at this reply. https://community.esri.com/t5/arcgis-web-appbuilder-questions/refreshing-web-appbuilder/m-p/104317/h...

 

View solution in original post

Occasional Contributor III

Dear Robert, Thank you very much!

I implemented the pointed solution and it works!

I have 2 questions:

1. "isRemote" (WidgetManager.js lines 146,202,410,1123,1139) is a new flag since the time of that link, and I had to incorporate the version (for no cache) also when "isRemote" is undefined.  Can you please tell me its meaning? 

2. The link pointed by you has not incorporated version in method loadWidgetSettingClass, but I assume it has to.

Reply
0 Kudos