Adobe Dispatcher Cache behavior | Community
Skip to main content
venkatesh_g1
October 16, 2015
Solved

Adobe Dispatcher Cache behavior

  • October 16, 2015
  • 2 replies
  • 1101 views

Say a custom component was using tag lib, which was fetching data from database. Please let me know the behavior in dispatcher. Will this page will be cached or it will fetch dynamic values. I wanted to know whether we have to give like response.setHeader("Dispatcher", "no-cache") in those scenarios or adobe automatically takes care.

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 joerghoh

Hi

The dispatcher caches under these circumstances:

  • The requested file has an extension
  • The requested file has no query string (no "?")
  • The requested file is covered by the caching rules as specified in the dispatcher.any

So the easiest way would be fetch your file, which should not be cached, with a query string attached. Then also the clients or intermediary caches do not cache it.

regards,
Jörg

2 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi

The dispatcher caches under these circumstances:

  • The requested file has an extension
  • The requested file has no query string (no "?")
  • The requested file is covered by the caching rules as specified in the dispatcher.any

So the easiest way would be fetch your file, which should not be cached, with a query string attached. Then also the clients or intermediary caches do not cache it.

regards,
Jörg

Adobe Employee
October 16, 2015

To be clear, the dispatcher doesn't know anything about the internal logic of your components. It just sees the rendered HTML and headers.