X-Dispatcher-Info header not returning | Community
Skip to main content
zoom_chris
New Participant
Jun 19, 2017 5:04 AM UTC
Solved

X-Dispatcher-Info header not returning

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Jun 21, 2017 6:16 AM UTC

Hi,

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

Jörg

4 replies

joerghoh
joerghohAccepted solution
Employee
Jun 21, 2017 6:16 AM UTC

Hi,

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

Jörg

Translate
zoom_chris
New Participant
Jun 20, 2017 10:46 PM UTC

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!

Translate
joerghoh
Employee
Jun 20, 2017 11:28 AM UTC

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

/farms

  /myfarm

  /info "1"

Translate
kautuk_sahni
Employee
Jun 20, 2017 11:23 AM UTC

Jörg Hoh​ Any help here?

~kautuk

Translate
Kautuk Sahni