[opencms-dev] Configuration of max-age-Header in OpenCms possible?

Schliemann, Kai K.Schliemann at comundus.com
Wed Mar 10 09:38:39 CET 2021


Hi list,

OpenCms seems to set the max-age header to 1 day per default.
For SEO reasons we want to change the value at least for static resources like images, css and js files.
Background info: https://web.dev/uses-long-cache-ttl/

There are several places In the source code where the DateExpiresHeader is set: https://github.com/alkacon/opencms-core/search?q=setDateExpiresHeader

I wonder, if there Is a possibility to change that setting in a config file?

Thanks for your help.

Best regards
Kai

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210310/6520137c/attachment.htm>


More information about the opencms-dev mailing list