HomeCore Learning Journey › Session 8 — Dispatcher, caching & delivery

Session 8 — Dispatcher, caching & delivery

Purpose: Understand how the Dispatcher caches, filters and invalidates — the difference between a fast AEM site and a melting one.

Who this page is for

AudienceWhy it matters to you
All engineersEvery component you build has a caching consequence

What the Dispatcher is

An Apache/IIS module in front of publish doing three jobs: cache rendered pages as files on disk, filter which requests are allowed through, and load-balance across publish instances. Mentally: Nginx + CDN with a content-aware invalidation hook.

            GET /plans/gold-hospital.html
Visitor ──▶ CDN ──▶ Dispatcher ──cache HIT──▶ serve file from docroot
                        │
                     cache MISS
                        ▼
                    Publish renders ──▶ file written to docroot ──▶ served & cached

The two config files that matter

FileControlsKey sections
dispatcher.anyCaching & routing/filter (allow/deny rules), /cache (/rules what to cache, /invalidate what flushes), /farms
httpd.conf / vhostsWeb server basicsvhosts, rewrites, headers

What gets cached (and what silently doesn't)

RequestCached?Why
GET /plans/gold-hospital.htmlYesGET, has extension, no query string
GET /plans/gold-hospital.html?campaign=xNo (by default)Query string bypasses cache — use /ignoreUrlParams for known tracking params
POST anythingNoNon-GET is never cached
GET with Authorization headerNot by defaultRequires explicit /allowAuthorized decisions
URL without extensionOften not cacheable as a fileAlways link with extensions in AEM

Invalidation

On publish/activation, AEM sends a flush request; the dispatcher touches .stat files. Any cached file older than the nearest .stat above it is re-fetched on next request — that is statfileslevel. Auto-invalidation is why authors' changes appear without any deploy: publish the PHI plan page, its cached HTML is invalidated, next visitor triggers a fresh render.

Developer consequences

Quick navigation