AEM inserts html info comment in the servlet reponse



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


extra code in the response :




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.