I have created an OpenUI5 app and I want to relase a new version daily. But I found some problems:
Now I have this meta-tags on my index page:
<meta http-equiv="expires" content="0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
Is there a way to force the reload of all content always? (or when I modify the version number?)
This really depends on what server you are using to serve the content and whether you can set the headers when it serves the various JS files to the client. Unfortunately this is probably just disabling the cache all the time.
There is also a built in concept called "Cache-buster" which is documented here - OpenUI5 Cache Buster . This does something clever and puts a timestamp or version number in the url which is read from a config file. If you are hosting on an ABAP stack then this is built in for you and easy to enable, if you aren't it's still easy to manually implement.
I have solved my problem using ONLY
<meta http-equiv="cache-control" content="no-cache" />
as show in this post:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.