AEM inserts html info comment in the servlet reponse

Avatar

Avatar
Ignite 1
Level 1
rahulb31017943
Level 1

Likes

0 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile

Avatar
Ignite 1
Level 1
rahulb31017943
Level 1

Likes

0 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile
rahulb31017943
Level 1

23-01-2020

The response of resource types servlet consists of commented HTML code information.

 

extra code in the response :

<!--cq{"decorated":false,"type":"demo/components/structure/page","path":"/content/demo/en/jcr:content","selectors":"data","servlet":"DummyConfigurationServlet","totalTime":1,"selfTime":1}-->

 

 

But when I use a path based servlet then there is no extra code added.

 

Why AEM adds this additional code in the response.

Is there any way to remove this code in the servlet response.