on 11-01-2015 9:25 PM
Hi guys
I'm developing a SAPUI5 application that needs to work offline. I'm using the Eclipse plugin provided by SAP to develop the app and upload it to the ABAP-server (SAP ECC 6.0, Enhancement Package 7).
In Chrome my appcache works fine on all platforms, yet it doesn't work in any other browser. I found out that the server sends "cache-control: no-cache, no-store" for my index.html file.
I tried to set the Browser-Cache to 1 day in the properties of index.html in se80 on the SAP server, but that didn't change anything. I googled a lot but just can't find out how to turn this off. Does anyone know how to turn this off?
Thank you so much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in the index file, you may try to add this to the head tag:
update the content attribute with whatever you need either no cache or the value you need for offline caching
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Benjamin,
Change the header field by using the method set_header_field of the response object inside the OnInitialization event of the BSP page or inside the layout of the BSP page.
Example:
response->set_header_field( name = 'Cache-Control' value = 'private, max-age=30879000' ).
Regards,
Christian Jianelli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.