There are many techniques to improve the performance of SAP Hybris Commerce, but there is one (simple) client-side technique that should not be overlooked any SAP Hybris Commerce project.
In the project.properties, there is an important property called storefront.staticResourceFilter.response.header.Cache-Control
With OOTB Hybris Commerce, this property is set to:
Which is ideal for development purposes, since we want to minimize caching of any sort during development.
However, as your SAP Hybris Commerce implementation is nearing its go-live deployment date, it's important to re-configure this property value to resemble the following:
This property update informs Hybris Commerce to cache the assets served from the /_ui/ directory for 24 hours from the browser cache.
If you wish to cache the static files served from /_ui/ directory for less than 24 hours, change your max-age seconds value according to your own business requirements.
Now you know how to configure SAP Hybris Commerce to cache assets locally using the user's browser cache.