This feature manage Cache-Control header for Jahia. It ensure CDN optimisation by setting adapted Cache-Control header for each resource.
The project is composed of :
- an API bundle
- an Implementation bundle
- a Feature module
- a test folder containing dedicated Jahia Module for testing purpose and some cypress tests.
There is no specific build required for this feature. As it is a maven based multi-module project, just call:
mvn clean install The feature is already included in Jahia but you may want to install a specific version or upgrade it.
Even if not recommended, you may want to deploy the feature for development or testing purpose using the build .kar file.
docker cp ./client-cache-control-feature/target/client-cache-control-<version>.kar jahia:/var/jahia/karaf/deployBe aware that after install kar file, behavior regarding bundles can be unexpected as different can be present togethers.
Not yet available
The feature elements can be updated independently.
docker cp ./client-cache-control-api/target/org.jahia.bundles.client-cache-control-api-<version>.jar jahia:/var/jahia/karaf/deploydocker cp ./client-cache-control-bundle/target/org.jahia.bundles.client-cache-control-impl-<version>.jar jahia:/var/jahia/karaf/deployYou can install also configuration file or edit them directly from Jahia's Karaf /etc folder.
docker cp ./client-cache-control-bundle/target/classes/META-INF/configurations/org.jahia.bundles.cache.client.ruleset-default.yml jahia:/var/jahia/karaf/deployUse a Jahia instance with version >= 8.2.2.0
Build and deploy the required testing module :
cd tests/jahia-module
mvn clean package
docker cp ./target/client-cache-control-test-template-<version>.jar jahia:/var/jahia/modules
cd ..
./set-env.sh
yarn install
yarn run e2e:debug