X-Cache-Info header not returning documented values | Community
Skip to main content
Preetpal_Bindra
Community Advisor
Community Advisor
October 19, 2021
Solved

X-Cache-Info header not returning documented values

  • October 19, 2021
  • 2 replies
  • 3022 views

Greetings,

The Debugging section on this documentation suggests that sending the X-Dispatcher-Info request header to Dispatcher must return response header X-Cache-Info.

I have the /info "1" flag enable in my farm configuration as directed.

 

Dispatcher does return the header as expected, however, the value is either a hit or a miss.

The documentation suggests the expected values could be cached, caching, caching: stat file is more recent, not cacheable: no document root and so on.

 

The documentation does not specify hit or miss as expected values, and, the actual values from my test do not match what is documented.

 

https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html?lang=en#debugging 

 

 

Attaching a screenshot from my test. Am I missing something?

 

 

Thanks,

Preetpal

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Raja-Karuppsamy

Hi @preetpal_bindra ,

 

The documentation suggests that X-Dispatcher-Info response header returns these values cached, caching, caching: stat file is more recent, not cacheable: no document root.

 

Please try use the CURL command :

curl -v -H "X-Dispatcher-Info: true" https://<dns>/<language>.html

 

X-Cache-Info -> hit = Request served from cache

X-Cache-Info -> miss = Request served from origin server (publisher)

 

Can you please tell me where did you configured the /info "1" in the farm file ?

2 replies

SantoshSai
Community Advisor
Community Advisor
October 20, 2021

Hi @preetpal_bindra 

 

Can you try this, list out your header in /clientheaders section of the dispatchers and see if any luck?

 

Regards,

Santosh

Santosh Sai
Preetpal_Bindra
Community Advisor
Community Advisor
October 26, 2021

I tried it anyway, and the result is same as before,

X-Cache-Info: hit 

OR

X-Cache-Info: miss

depending on whether the page's caching status.

Raja-Karuppsamy
Community Advisor
Raja-KaruppsamyCommunity AdvisorAccepted solution
Community Advisor
October 21, 2021

Hi @preetpal_bindra ,

 

The documentation suggests that X-Dispatcher-Info response header returns these values cached, caching, caching: stat file is more recent, not cacheable: no document root.

 

Please try use the CURL command :

curl -v -H "X-Dispatcher-Info: true" https://<dns>/<language>.html

 

X-Cache-Info -> hit = Request served from cache

X-Cache-Info -> miss = Request served from origin server (publisher)

 

Can you please tell me where did you configured the /info "1" in the farm file ?

Preetpal_Bindra
Community Advisor
Community Advisor
October 26, 2021

Raja-kp 

Apologies for the late reply. I've configured it right inside the farm as following,

 

 

/farms {      /website {         /info "1"         /clientheaders { ...