Disabling dispatcher cache for some pages with HTTP header

Problem

You would like to disable caching your pages in dispatcher but you dont want to use dispatcher caching and would like to handle this dynamically in your pages.

Resolution

With the Dispatcher release 4.0.0 (and higher) a new header named "Dispatcher: no-cache" is introduced. This header informs the dispatcher not to cache the response. This header will then be removed by the dispatcher before forwarding the response to the client.

In order to disable caching in the dispatcher, add the header "Dispatcher: no-cache", i.e. in your JSP:

<%
  response.setHeader("Dispatcher", "no-cache");
%>

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online