I'm trying to find a way to clear the browser cache of all the "designerview-simple.js" files for the MVC widgets that we are building.
The only solution we came up with to attach a unique query string to the end of the js file so when the file get attached to the document browser will recognize the file as a new file and download a fresh copy of it.
Here is the code :
@Html.Script(Url.WidgetContent("Mvc/Scripts/mywidget/mywidgetview.js?version=" +VersionNumber), "top", false)
Now we want to implement the same functionality to the "designerview-simple.js" .
However we are not able to locate where the "designerview-simple.js" loading from or how its loaded , so we can add this code and the cache will be clear.
Is there a better solution for this issues ?
Please let us know.
Thank you in Advance