APK caching and replace files from live web server after installation

In my app i have created a js file to store constants values that used for APK version only. the web server constants values are different from apk build constants values.
I wrote a shell script for this, after the web deployment completed my shell script replace the mobile-constant value with some other values.
my shell script running successfully and the build is also success, but when my apk launch after the installation. after 3 seconds(on login page) the apk caching all files from the web server and the constants values are replaced with webserver constants values…
is there any way to solve this issue?

My file name is mobile-constants.js
and the content on web server is

export default constants = {
“source”:“standalone”,
“platform”:“android”
}

i replace this contents values before creating the APK( to store on playstore), like this

export default constants = {
“source”:“playstore”,
“platform”:“android”
}