Reputation: 203
When we are trying to access a page which is not already cached in dispatcher it show entire html on screen and doesn't render it as page . Attached image show how dom section on first load.
On subsequent request we are able to see entire pages and all html,css, images, js are loaded correctly.
Are we missing any configuration here.
Upvotes: 0
Views: 1850
Reputation: 3444
You need to configure your dispatcher to pass through the headers for a HTML page to be displayed correctly. HTML won't be parsed correctly by some browsers if the headers are incorrect.
This can be done by specifying the passthrough headers in the /clientheaders
section. A sample configuration will look as 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 for more details.
You will also need to setup the ModMimeUsePathInfo
for your Apache web server as describer over here.
Dispatcher depends on the mod_mime Apache module to correctly identify the documents to cache. This is one of the minimum configuration that is required on the httpd server for correct functioning of the Dispatcher module.
A simple configuration to enable mod_mime will be as below:
<Directory />
<IfModule disp_apache2.c>
SetHandler dispatcher-handler
ModMimeUsePathInfo On
</IfModule>
</Directory>
Upvotes: 2