SAP Knowledge Base Article - Preview

2606772 - How to improve Hybris Commerce application performance by configuring frequently used or slow changing resources to be served from the local browser cache.

Symptom

Typical resources that can be served locally include:

Javascript files
CSS files
images / icons

In standard configuration, Hybris Commerce serves the static content from the /_ui/* path through the StaticResourceFilter.

This filter reads configuration properties that start with the prefix "storefront.staticResourceFilter.response.header.". The remainder of the property is used as the header name which is set on the response, and the value of the HTTP response header is set to the value of the property.

By default the following property is configured:

storefront.staticResourceFilter.response.header.Cache-Control=no-cache, must-revalidate

"No-cache" forces caches to submit the request to the origin server for validation before releasing a cached copy and "must-revalidate" means that the cache must verify the status of the stale resources before using it and expired ones should not be used.


Read more...

Environment

Hybris Commerce 5.7, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6

Apache web server

Product

SAP Hybris Commerce 6.0 ; SAP Hybris Commerce 6.1 ; SAP Hybris Commerce 6.2 ; SAP Hybris Commerce 6.3 ; SAP Hybris Commerce 6.4 ; SAP Hybris Commerce 6.5 ; SAP Hybris Commerce 6.6 ; SAP hybris Commerce 5.7

Keywords

max-age, cache-control, performance, response header, , KBA , CEC-COM-CPS , Commerce Platform & Suite (SAP Hybris) , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.