Skip to Content
avatar image
Former Member

Want to see my Latest code in View after refreshing the browser (without F12)

Hello All,

I am getting old code while refreshing my browser .I don't want to go in debugg mode and clear the cache and hard reload every time. After refreshing , the browser should contain latest change in UI.

I need to add some code line in my Application from which i can get latest change in my UI5 code .

Because from the end User they don't want to clear the cache and hard reload every time.They should load the latest code code after every refresh.

Regard,

Rewati Raman

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 18, 2017 at 07:47 AM

    Add this piece of code in index.html

        <script src="resources/sap-ui-cachebuster/sap-ui-core.js"
          id="sap-ui-bootstrap"
          data-sap-ui-libs="sap.ui.commons"
          data-sap-ui-theme="sap_goldreflection"
          data-sap-ui-appCachebuster="./">
        </script>
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 13, 2017 at 08:13 AM

    Hello Rewati Raman,

    Please try Ctrl+F5.

    Regards,

    Tri

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Tri,

      Ctrl+F5 is function of Hard Reload.

      But in my case only cache clear and hard reload is working.

      How can i do it by JavaScript. Location.reload(true) function is not working.

      Regard,

      Rewati Raman