Expand my Community achievements bar.

SOLVED

Dispatcher none status

Avatar

Level 1

Morning,

we have both an infrastructure consisting of dispatcher and publish instance on the same machine, and in two separate machines.

In both configurations however one and only one call to a specific servlet, even if it's cached, when called from another linux machine and not from the browser does not return the cached json data, but executes the whole servlet. Inspecting the dispatcher logs, instead of the hit/miss status I see none.

 

No dynamic parameters are passed in the call. Can you explain me the meaning of "none"?

 

Thanks a lot

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Community Advisor

Can you check the cache header?

the cache-action here is NONE, this means that this request will not be cached in the Dispatcher.

 

You can enable the debug log and check the issue

https://blogs.perficient.com/2017/10/12/mastering-aem-dispatcher-part-1-debugging-the-dispatcher/



Arun Patidar

Avatar

Level 1

Thanks @arunpatidar.

 

I set the dispatcher log level at DEBUG, and as you said I found:

cache-action for [/content/common-content.features.all.json]: NONE
Adding request header: X-Forwarded-Proto
Adding request header: user-agent
Adding request header: accept-encoding
Adding request header: accept
Adding request header: host
Adding request header: Via
Adding request header: X-Forwarded-For
Adding request header: Server-Agent

When called from the browser the cache-action is DELIVER, since the file is cached. How is this cache-action set and where can I intervene?

 

 

Avatar

Correct answer by
Community Advisor