Expand my Community achievements bar.

SOLVED

Exclude a page from Dispatcher caching

Avatar

Level 6

Hi,

 

How to exclude a particular page from getting cached in dispatcher

Kindly provide the syntax for the same

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi Akhil,

Welcome to AEM Community !!

 

I am not sure about the IIS version of the Dispatcher you have configured, but certainly with the Apache module if you add a custom HTTP header "dispatcher: nocache" it will not cache the page in the Dispatcher.

You might need to change the code to add this, which would be something like: request.setHeader("Dispatcher", "nocache");

It might also work as meta tags in the html, but I've not tried this.

Thanks,

Vikram Gaur

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Hi Akhil,

Welcome to AEM Community !!

 

I am not sure about the IIS version of the Dispatcher you have configured, but certainly with the Apache module if you add a custom HTTP header "dispatcher: nocache" it will not cache the page in the Dispatcher.

You might need to change the code to add this, which would be something like: request.setHeader("Dispatcher", "nocache");

It might also work as meta tags in the html, but I've not tried this.

Thanks,

Vikram Gaur