01-31-2024 3:34 PM - edited 02-01-2024 9:14 AM
Hello all!
We are developing an application using SAP CAP and we have 3 different projects: one for the data model, one for the application frontend and one for the application router (standalone app router). All of them are deployed in BTP Cloud Foundry and can be accessed through the app router url.
We sometimes, when deploying new changes, need to refresh cache from the browser developer tools in order to see the new changes. We have implemented the cachebuster in the application frontend as stated in the documentation. We do not have/use the Portal-Build Worzone service.
What is the correct way to handle cache busting in these cases? Is there anything needed to be done in the application router xs-app.json file? I have read it should be handled automatically... but it does not.
The route we have for the application repository is the following:
{
"source": "^(.*)$",
"target": "/$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa",
"scope":"blabla",
"csrfProtection": true
}
Any advice given will be much appreciated.
Thanks in advance.
Hi, Cachebuster depends on the system where you run your application, eg fiori Launchpad has a cache buster indexing report to make sure the end users see the latest version. The same concept is also in workzone.
For standalone apps you can try to configure the xs-app.json like in this example:
not sure if this will work for all scenarios, another way could be the following:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.