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.
Attaching a screenshot from my test. Am I missing something?
Thanks,
Preetpal
Solved! Go to Solution.
Views
Replies
Total Likes
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 ?
Can you try this, list out your header in /clientheaders section of the dispatchers and see if any luck?
Regards,
Santosh
Isn't /clientheaders necessary to pass the headers from the client's browser through Dispatcher?
Since, I see the headers coming through (both request and response), I believe that is working well. It's the value for the headers that do not seem what is documented.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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 ?
Apologies for the late reply. I've configured it right inside the farm as following,
/farms { /website { /info "1" /clientheaders { ...
Views
Replies
Total Likes
I used the CURL command, gives me the same result,
X-Cache-Info: hit
OR
X-Cache-Info: miss
depending on whether the page's caching status.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies