Components caching
OpenUI5 version: 1.44.15
Steps to reproduce the problem:
- Start application and open component with id com.example.a in version 1.0 from one URL
- Try open component with the same id in version 2.0 from second URL
What is the expected result? Component is downloaded from second URL and open. It should be possible used the same component in different versions.
What happens instead? Component is not downloaded. Instead component in version 1.0 is opened.
Components are saved in structure mModules inside sap-ui-core and it is not possible delete its legaly. Only possibility is used private experimental function jQuery.sap.unloadResources.
UI5 currently does not plan to support versioned components like you describe them, neither in parallel nor one after the other (over time).
If this is needed, suggestion is to integrate a version information into the component name.
Using jQuery.sap.unloadResources is not an option, not only because it is private, but also because it isn't a complete solution. There are many artifacts that can't be cleaned up by this method (e.g. code in the browser, existing control instances, controllers, listeners, CSS, whatever).
The proposed solution might not be suitable, if you planned to address a dev-scenario (keep some shell running, only replace some nested component under development). It still should work, but might require too many changes in the component.