0

When I upload the latest version of my web application to the server, the user must do the following to see the latest version:

  1. If the program is running in the browser it should hit the shift + f5 buttons.
  2. If the program is running in the mobile browser, it should clear the cache as follows:

Settings / Privacy / Clear browsing data / Clear data

enter image description here

Now how can we do this automatically with programming so that the user doesn't have to?

javad
  • 833
  • 14
  • 37

2 Answers2

0

to store data you need sqlite or native storage blugin

  • with sqlite you can use simple delete requet
  • with blugin you can set your data to null or use delete methode
Hamza Meghlaoui
  • 146
  • 1
  • 2
0

I've added version (ex: ?ver=1.0) to the end of scripts in the index.html file:

<!-- Ionic's root component and where the app will load -->
  <ion-app></ion-app>

  <!-- The polyfills js is generated during the build process -->
  <script src="build/polyfills.js?ver=2.2"></script>

  <!-- The vendor js is generated during the build process
       It contains all of the dependencies in node_modules -->
  <script src="build/vendor.js?ver=2.2"></script>

  <!-- The main bundle js is generated during the build process -->
  <script src="build/main.js?ver=2.2"></script>

And then increase the version number each time you upload it

javad
  • 833
  • 14
  • 37