
The portal supports browser caching using HTTP conditional requests. You enable browser caching by setting the ALLOW_BROWSER property in the component's profile.
The following are the steps that occur if browser caching is enabled:
An HTTP header LastModified is sent to the browser with the last-modified time.
After receiving a response with a LastModified header, the browser sends an IfModified-Since header to the server if the same request is made again. The header contains the time from the LastModified header.
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>