Skip to Content

Offline-App with SMP: Disable "modified-since" for metadata-requests?

Hello together,

I have a kapsel-offline-application using a sap-mobile-plattform-server as middleware (and nw-gateway as odata-provider.)

In the middleware I configured a second backend-connection that i Use from the client for some online-requests beside the kapsel/offline handling.

That works fine, until I close and restart my app. When I then instantiate the online-model (ODataModelV2) I dont get the metadata.

I see that the smp sends an "modified-since-header" with the $metadata-Request. I know thats used for performance improvements.

Does somebody know a possibility to avoid this header? Maybe some parameter in the smp?

Add comment
10|10000 characters needed characters exceeded

  • You mention:
    <<I see that the smp sends an "modified-since-header" with the $metadata-Request. I know that’s used for performance improvements.
    We would suggest seeing what was modified since header is coming from the OData service rather than the SMP server.
    I assume you would be able to make the metadata request in your chrome browser and examine the headers in the networking tab of the Web Inspector.

  • Thank you for the added details.
    It does not seem to be an Offline OData question or issue.
    The Online SDK does some ‘offline’ caching, and apparently, there’s some issue, either with this code or with the use of it.
    We are still in the process of researching.

  • Hi,

    thats the response if I retrieve the metadata directly from the Gateway-Client:

    When I do this in Chrome, I'll get the same response. Everything is fine.

    But when I now instantiate an ODataModel in my app, the following is send to the gateway. (I've captured this with a trace).

    And I dont get a response.

  • Get RSS Feed

1 Answer

  • Mar 28, 2018 at 02:00 PM

    We checked and we do not send this header that you have mentioned. You may need to search your code and see where this is being set.

    Than you

    Add comment
    10|10000 characters needed characters exceeded