Overview

Since AEM 6.1 Adobe recommends to not longer place the AEM Client Libraries below /etc/clientlibs or /etc/designs, but to place them below /apps and set allowProxy=true on it (see AEM documentation).

On the publish side there is usually no direct access to /apps possible, thus the clientlibs are services using a proxy service via the URL /etc.clientlibs (note the dot instead of the slash).

This article describes how to switch your AEM Client Library to this proxy mode, with a focus on applications based on the wcm.io stack.

Instructions

Steps to switch an AEM Client Library to Proxy Mode

  1. Move the Client Library in your AEM project to a folder below /apps/<yourapp>/clientlibs
  2. Check all client libraries and make sure all static resources (e.g. web fonts, images) are within a resources folder of the client library
  3. Make sure the older client library folder is removed from instances where you application was already installed before with the old location
  4. Set the flag allowProxy=true on your client library
  5. If you are using the build-helper-maven-plugin to generate populate the longCacheKey property with the current project version/build number of your project, make sure to update the path to the client library for this in the POM as well.
  6. Search all of your source code files (esp. HTL, JSP files, Java files) for reference to the old client library path below /etc and switch it to the new path below /apps.
  7. If you are using wcm.io Handler:

With this in place:

Related articles

The content by label feature displays related articles automatically, based on labels you choose. To edit options for this feature, select the placeholder below and tap the pencil icon.



Related issues