Expand my Community achievements bar.

SOLVED

Adobe Dispatcher Cache behavior

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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

Avatar

Employee

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