Custom 404 Page Not Displayed in Dispatcher
Hello,
I have been working on a customized 404 page for my company's website. I created a custom page component, and then created a page under each of the 9 languages supported by our website. For example, we have en/page-not-found.html and de/page-not-found.html, etc... In 404.jsp, I included a series of if statements that determine the language used by the user when the request was made. The appropriate page is then included. This error page renders properly on the publisher, but it does not display at all on the dispatcher. When the incorrect URL is entered in the dispatcher, a blank page is returned. However, the title is applied.
I do not want to cache the 404 page on the dispatcher, because the requested URL is dynamically rendered on the page. Is there any way that I can configure the dispatcher to display the 404 page without caching it?
Thank you.