Show TOC Start of Content Area

Background documentation Browser Caching  Locate the document in its SAP Library structure

The portal supports browser caching using HTTP conditional requests. Enable browser caching by setting ALLOW_BROWSERproperty in the component’s profile.

The following are the steps that occur if browser caching is enabled:

...

       1.      If browser caching is enabled, an HTTP header LastModified is sent to the browser with the last-modified time.

       2.      After receiving a response with a LastModified header, the browser sends an If‑Modified-Since header to the server if the same request is made again. The header contains the time from the LastModified header.

       3.      The If-Modified-Since value can be compared to the cached content timestamp of the root node.

If they match, the HTTP response header NOT_MODIFIED is sent to the browser.

Otherwise, the content is regenerated, stored in the cache, and sent again to the browser.

A portal component can use browser caching if:

·        The root component node is cached.

·        All cached nodes in the Portal Object Model (POM) have the property ALLOW_BROWSER set to Yes or BrowserOnly in their profile, as shown below:

<component name="user2">

    <component-config>

        <property name="ClassName" value="myApp.myComponent"/>

    </component-config>

    <component-profile>

        <property name="CachingLevel" value="User"/>

        <property name="ALLOW_BROWSER" value="BrowserOnly"/>   

    </component-profile>

</component>

 

 

 

End of Content Area