Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

0 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.