How to disable cache-control for SAPUI5 Web IDE only?

671 Views Asked by At

I have set a cache-control in the neo-app.json and it's working fine on production but I want to disable on dev mode (SAP Web IDE) without opening Chrome DevTools and enabling "disable cache".

Can someone help ? Thanks

2

There are 2 best solutions below

1
michel luther On

Not sure if I understand what your problem is, but we usually define separate launch-html pages, like one index.html for production and one index-webIDE.html for launching the app from the webIDE.

You can set up the configs like this:

Right-click the project -> Run -> Run Configurations

enter image description here

Then define your alternate starting html page for bootstrapping the app.

enter image description here

0
Swadhin On

I guess the default run configuration itself has this in URL parameter ...&sap-ui-appCacheBuster=..%2F..%2F&sap-ui-xx-componentPreload=off&sap-ui-xx-viewCache=false#Shell-home