Highlighted

Create Custom error pages in aem

Avatar

Avatar

AnkurAhlawat

Avatar

AnkurAhlawat

AnkurAhlawat

21-12-2017

The focus of the article is to understand the functionality of Error handler and creating custom error pages using acs-commons error handler. Using acs-commons error handler we can create custom error pages in easier steps with least code involved.

In this article we will see :

  • Steps to configure the acs-commons error handler
  • Testing error handler functionality
  • Error Handler considerations

Read more at AEMCQ5Tutorials: Custom error pages using ACS-Commons Error Handler http://www.aemcq5tutorials.com/tutorials/adobe-aem-cq5-tutorials/custom-error-pages-acs-commons-erro...

Replies

Highlighted

Avatar

Avatar

abhishekagg19

Employee

Avatar

abhishekagg19

Employee

abhishekagg19
Employee

21-12-2017

Nice Article Ankur. Error pages are not cached by the dispatcher. It would be nice if you could add caching strategies available for the error pages.

Regards,

Abhishek

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

21-12-2017

Great community contribution!

Highlighted

Avatar

Avatar

prathyusham0990

Avatar

prathyusham0990

prathyusham0990

21-12-2017

Hi Abhishek,

Thanks for the input!

Acs-Commons Error Handler comes with In-Memory TTL based cache, which can be enabled in the sling:Osgi configurations of the Error Handler. Also we are setting the DispactherPassError to "0", so all the erring requests are sent back to AEM. Therefore our custom error pages load without displaying the Apache Error.

Regards

Prathyusha

Highlighted

Avatar

Avatar

edubey

Total Posts

1.5K

Likes

264

Correct Answer

392

Avatar

edubey

Total Posts

1.5K

Likes

264

Correct Answer

392
edubey

22-12-2017

prathyusham0990prathyusham0990

He is referring to the caching strategy at dispatcher not in-memory cache at AEM.

Unless the page is back on publisher, all request to that page will be going to AEM. He is looking for a way to cache 404 state of that page at dispatcher for that time period

@abhishek

Since its, purely based in ACS Commons, you might want to create a issue at [0] or check with Justin or David

[0] https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues

Highlighted

Avatar

Avatar

Hemant_arora

Avatar

Hemant_arora

Hemant_arora

26-12-2017

It says written by Prathyusha Madarapakam