cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

What is the maximum value suggested for cache max-age in static resources caching?

shet01
Discoverer
0 Likes
430

What is the maximum value suggested for cache max-age in hybris - production environment for the below property?

storefront.staticResourceFilter.response.header.Cache-Control

If we increase the cache duration to 1 year, will it be good?

Accepted Solutions (0)

Answers (1)

Answers (1)

safin
Product and Topic Expert
Product and Topic Expert

Hi Sneha,

This property is used to enable client side caching for static resource, as of what value is suggested, you should consider these questions

  1. Whether the static resources can be updated in the backend?
  2. Whether the static resources are updated frequently or not?
  3. What impact it will generate if the cached static resources are obsolete?

Based on your answers, then give it a reasonable value. Currently, the default value for storefront.staticResourceFilter.response.header.Cache-Control is 600 seconds, which should be the suggested value in common case, but please note, there is no so called 'reasonable' or 'maximum suggested' value for all scenarios, you should set it different value case by case.