Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

X-Dispatcher-Info header not returning

zoom_chris
Level 1
Level 1

Greetings AEM humans,

I am trying to test caching on Dispatcher 4.2.2 using the Apache Dispatcher module 2.2.

This guide:

Configuring Dispatcher - docs.adobe.com

Recommends sending the header "X-Dispatcher-Info" to the dispatcher, so that it will return the response header "X-Cache-Info" with the cache info about the page from dispatcher, but we can't get that to work!

Does anyone have any idea how we can get the dispatcher to return the cache info using this header? Here is a sample CURL request, we used TRUE as the docs didn't mention what payload this should be. If we don't send a value it drops the header...

$ curl -v -I --header "X-Dispatcher-Info: TRUE" http://WEBSITEURL/

*   Trying 192.168.X.X..

* TCP_NODELAY set

* Connected to WEBSITEURL (192.168.X.X) port 80 (#0)

> HEAD / HTTP/1.1

> Host: WEBSITEURL

> User-Agent: curl/7.51.0

> Accept: */*

> X-Dispatcher-Info: TRUE

>

< HTTP/1.1 200 OK

HTTP/1.1 200 OK

< Date: Mon, 19 Jun 2017 03:42:01 GMT

Date: Mon, 19 Jun 2017 03:42:01 GMT

< X-Content-Type-Options: nosniff

X-Content-Type-Options: nosniff

< X-Frame-Options: SAMEORIGIN

X-Frame-Options: SAMEORIGIN

< Content-Type: text/html; charset=UTF-8

Content-Type: text/html; charset=UTF-8

< Expires: Thu, 01 Jan 1970 00:00:00 GMT

Expires: Thu, 01 Jan 1970 00:00:00 GMT

< Transfer-Encoding: chunked

Transfer-Encoding: chunked

< Set-Cookie: JSESSIONID=FOO;Path=/;HttpOnly

Set-Cookie: JSESSIONID=FOO;Path=/;HttpOnly

< Content-Language: en

Content-Language: en

<

* Curl_http_done: called premature == 0

* Connection #0 to host WEBSITEURL left intact

1 Accepted Solution
Jörg_Hoh
Correct answer by
Employee
Employee

Hi,

the value of this header doesn't care, the dispatcher just checks for its existence.

Jörg

View solution in original post

4 Replies
Jörg_Hoh
Employee
Employee

You have to enable this functionality first; add a statement '/info "1"' to your farm.

/farms

  /myfarm

  /info "1"

zoom_chris
Level 1
Level 1

Hi Jörg,

Thank you for the reply.

We enabled this in our farm, but the X-Dispatcher-Info header is dropped if it doesn't have a value. There is no value documented in the docs.

What value do we need to send through? Like:

X-Dispatcher-Info: true

X-Dispatcher-Info: 1

X-Dispatcher-Info: value

Thanks in advance!

Jörg_Hoh
Correct answer by
Employee
Employee

Hi,

the value of this header doesn't care, the dispatcher just checks for its existence.

Jörg

View solution in original post