Skip to main content
venkatesh_g1
Oct 16, 2015 2:26 AM UTC
Solved

Adobe Dispatcher Cache behavior

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.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

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

Adobe Employee
Oct 16, 2015 2:26 AM UTC

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

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

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

Translate