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
Keywords
max-age, cache-control, performance, response header, , KBA , CEC-COM-CPS , SAP Commerce , How To
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.