Show TOC

Error Messages and IssuesLocate this document in the navigation structure

Cache-Control: No-Cache and Max-Age

For the cache-control response header it is possible to set either the max-age of the cache or to switch off the cache altogether by using the ES_RESPONSE_CONTEXT-DO_NOT_CACHE_ON_CLIENT export parameter.

Error Message: No-Cache and Max-Age cannot be used simultaneously

It is not possible to set the cache-control response header to no-cache and max-age as this is mutually exclusive. Therefore please check the ES_RESPONSE_CONTEXT-MAX_AGE and ES_RESPONSE_CONTEXT-DO_NOT_CACHE_ON_CLIENT export parameters.

Not-Modified Export Parameter

The Not-Modified export parameter can be set by the application and indicates that no data will be sent.

  • Error Message: Is-Not-Modified is not allowed in case If-Modified-Since is initial

    You are not allowed to set the ES_RESPONSE_CONTEXT-IS_NOT_MODIFIED export parameter to ABAP_TRUE in case if-modified-since is initial.

  • Error Message: Is-Not-Modified is not allowed in case of framework $expand

    You are not allowed to set the ES_RESPONSE_CONTEXT-IS_NOT_MODIFIED export parameter to ABAP_TRUE in case of framework $expand (generic expand).

    Recommendation

    SAP Gateway always recommends using the data provider $expand rather than relying on the framework $expand (generic expand) due to performance reasons.

  • Error Message: Is-Not-Modified must have the same values in all nodes for data provider $expand

    You are allowed to set the ES_RESPONSE_CONTEXT-IS_NOT_MODIFIED export parameter to ABAP_TRUE in case of data provider $expand, but it must be the same value for all nodes of one expand query.