adobe / aem-project-archetype

Maven template to create best-practice websites on AEM.
https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/overview.html
Apache License 2.0
538 stars 412 forks source link

Caching by default the sample site #1107

Open coatpont opened 1 year ago

coatpont commented 1 year ago

Expected Behaviour

The generated dispatcher configuration should include a vhosts file for the created site, including some default caching settings, e.g.

<LocationMatch "^/content/.*.(html)$"> Header unset Cache-Control Header unset Expires Header always set Cache-Control "max-age=200" Header set Age 0

Actual Behaviour

The generated dispatcher configuration doesn't cache any content by default.

Reproduce Scenario (including but not limited to)

Look at the caching headers for the pages on the publishers (coming with a no-cache header by default)

Steps to Reproduce

Platform and Version

Tested on AEM CS

Sample Code that illustrates the problem

Logs taken while reproducing problem