Show Menu

Dispatcher Configurations for AEM Screens

Dispatcher is Adobe Experience Manager's caching and/or load balancing tool.
The following page provides the guidelines for configuring dispatcher for an AEM Screens project.
If a dispatcher is available, connections to the registration servlet can be prevented by filtering in the dispatcher rules.
If there is no dispatcher, disable the registration servlet in the OSGi components listing.


Before you configure dispatcher for an AEM Screens project, you must have prior knowledge of Dispatcher.
Refer to Configuring Dispatcher for more details.

Configuring Dispatcher

Follow the steps below to configure dispatcher for an AEM Screens project.

Enabling Sticky Sessions

If you want to use more than one publish instance with dispatcher, you will have to update the dispatcher.any file.
/stickyConnections {

Step 1: Configuring Client Headers

Add the following to /clientheaders section:

Step 2: Configuring Screens Filters

To configure Screens filters, add the following to /filter .
## AEM Screens Filters
## # Login, Ping and Device Configurations
/0200 { /type "allow" /method "POST" /url "/libs/granite/core/content/login.validate/j_security_check" }
/0201 { /type "allow" /method "GET" /url "/libs/granite/csrf/token.json" }
/0202 { /type "allow" /method "GET" /url "/content/screens/svc.json" }
/0203 { /type "allow" /method "GET" /url "/content/screens/" }
/0204 { /type "allow" /method "GET" /url "/content/screens/svc.config.json" }
## # Device Dashboard Configurations
/0210 { /type "allow" /method '(GET|POST)' /url "/home/users/screens/*/devices/*/profile_screens.preferences.json" }
/0211 { /type "allow" /method "POST" /url "/home/users/screens/*/devices/*/profile_screens.logs.json" }
/0212 { /type "allow" /method "POST" /url "/home/users/screens/*/devices/*/profile_screens.statusinfo.json" }
/0213 { /type "allow" /method "POST" /url "/home/users/screens/*/devices/*/profile_screens.screenshot.json" }
## # Content Configurations
/0220 { /type "allow" /method '(GET|HEAD)' /url "/content/screens/*" }
/0221 { /type "allow" /method '(GET|HEAD)' /url "/content/screens/*/jcr:content/*/offline-config_*.zip" }
/0222 { /type "allow" /method '(GET|HEAD)' /url '/var/contentsync/content/screens/.+/jcr:content/.+/offline-config_.*\.[0-9]+\.zip' }

Step 3: Disabling Dispatcher Cache

Disable dispatcher caching for /content/screens path .
Screens players uses authenticated session, so the dispatcher does not cache any of the screens players requests for channels/assets .
To enable the cache for the assets so that the assets are served from dispatcher cache, you must:
  • Add /allowAuthorization 1 in /cache section
  • Add the below rules to /rules section of /cache
        /glob "*"
        /type "allow"

        # Disable Dispatcher Cache for Screens channels
        /glob "/content/screens/*.html"
        /type "deny" 

    # Disable Dispatcher Cache for Screens offline manifests
    /glob "/content/screens/*.json"
    /type "deny"

    { # Disable Dispatcher Cache for Screens devices json 
    /glob "/home/users/screens/*.json"
    /type "deny"