Clientside Caching

Use

Depending on the Web browser settings, you can store Web pages in the Web browsers cache. To a limited extent, this caching behavior can be influenced by users, so you must assume that the user has configured a given behavior.

To handle this, you need to influence the browser's caching behavior from the server side to ensure that when the user performs an action in the browser, a requested page is not taken from the browser's local cache but is displayed after communication with the SAP system.

Undesired caching causes problems when the request method get is used. This method has the semantics of a pure read operation and is used with hyperlinks. It is not absolutely necessary to communicate with the server if the browser can fall back on a result which exists for an earlier request. The worst case scenario is that the server is not activated by the user action.

Using an Expiration Date

To be able to use both request methods equally, pages given to the browser by the server should be allocated an expiration date according to their type. This allows you to control when the browser should consider a page to be out-of-date and no longer access it in the cache. When such a page is activated, the browser will re-establish contact with the server.

Use the HTTP header " Expires" to define the expiration date and give it the value "0" to instruct the browser not to cache this page.

This HTTP header is only used for pages which are addressed using the "get" method, for example, via a hyperlink. Pages which are read by "post" are not given an expiration date.

To ensure that automatic cache control functions correctly, the caching behavior of HTML templates must not be influenced by subsequently adding < meta http-equiv...> tags.

Frame Set Documents

To start a service indirectly via a frame set document you should assign an expiration date to this page statically. This guarantees that the service will actually be started.