March 12, 2020
Estimated Post Reading Time ~

Backend forbids caching, sent: 'Dispatcher: no-cache'

When using dispatcher if we use the below code then pages will not be cached in the dispatcher. Error in dispatcher.log is "Backend forbids caching, sent: 'Dispatcher: no-cache'"
response.setHeader("Dispatcher", "no-cache");                       
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
response.setDateHeader("Expires", 0);


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.