cq5 - AEM dispatcher not loading the html page on first hit -
when trying access page not cached in dispatcher show entire html on screen , doesn't render page . attached image show how dom section on first load.
on subsequent request able see entire pages , html,css, images, js loaded correctly.
are missing configuration here.
you need configure dispatcher pass through headers html page displayed correctly. html won't parsed correctly browsers if headers incorrect.
this can done specifying passthrough headers in /clientheaders
section. sample configuration below:
/clientheaders { "referer" "user-agent" "authorization" "from" "content-type" "content-length" "accept-charset" "accept-encoding" "accept-language" "accept" "host" "cookie" }
see https://docs.adobe.com/docs/en/dispatcher/disp-config.html more details.
you need setup modmimeusepathinfo
apache web server describer on here.
dispatcher depends on mod_mime apache module correctly identify documents cache. 1 of minimum configuration required on httpd server correct functioning of dispatcher module.
a simple configuration enable mod_mime below:
<directory /> <ifmodule disp_apache2.c> sethandler dispatcher-handler modmimeusepathinfo on </ifmodule> </directory>
Comments
Post a Comment