[opencms-dev] Configuration of max-age-Header in OpenCms possible?
Hein van der Kallen
hvanderkallen at xs4all.nl
Thu Mar 11 12:00:15 CET 2021
Kai
If you use Apache you can set DateExpiresHeaders like in
https://gtmetrix.com/serve-static-assets-with-an-efficient-cache-policy.html
or somewhere included in your httpd.conf.
Hein van der Kallen
Van: opencms-dev <opencms-dev-bounces at opencms.org> Namens Schliemann, Kai
Verzonden: woensdag 10 maart 2021 09:39
Aan: The OpenCms mailing list <opencms-dev at opencms.org>
Onderwerp: [opencms-dev] Configuration of max-age-Header in OpenCms
possible?
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/20210311/823ff014/attachment.htm>
More information about the opencms-dev
mailing list