Hi,
How to exclude a particular page from getting cached in dispatcher
Kindly provide the syntax for the same
Solved! Go to Solution.
Views
Replies
Total Likes
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
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
Yes,
response.setHeader("Dispatcher", "no-cache");
Views
Likes
Replies