Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

The dispatcher always return mime type with “text/html”

Avatar

Level 4

Hi Guys,

The dispatcher always return mime type with “text/html” and it makes the web page unreadable.

It due to some pictures, css, js…… cannot render correct. It is supposed to be text/css, text/png…….

Does anyone know this issue?

Thanks a lot.

[img]QQ截图20150316161230.png[/img]

1 Accepted Solution

Avatar

Correct answer by
Employee

See here for documentation: https://docs.adobe.com/docs/en/dispatcher/disp-install.html

Search for ModMimeUsePathInfo

View solution in original post

5 Replies

Avatar

Employee

Have you configured the ModMimeUsePathInfo? Like this here?

 

    <IfModule disp_apache2.c>

        ModMimeUsePathInfo On

        # enable dispatcher for ALL request. if this is too restrictive,

        # move it to another location

        SetHandler dispatcher-handler

    </IfModule>

Avatar

Correct answer by
Employee

See here for documentation: https://docs.adobe.com/docs/en/dispatcher/disp-install.html

Search for ModMimeUsePathInfo

Avatar

Level 4

Thanks for your reply.

Your are right, it is working fine after I add this param. But I am weird that we have another server working fine without this param.

Such as this:

 <IfModule disp_apache2.c>

        # enable dispatcher for ALL request. if this is too restrictive,

        # move it to another location

        SetHandler dispatcher-handler

    </IfModule>

Could you know any possible to fix this without this parameter?

Avatar

Level 2

Dispatcher does not cache meta data (HTTP headers), it only caches the plain file.

So when Apache serves the file from the Dispatcher cache, it sets the MIME type according to the file name extensions. If you have this configured it will get applied.

Check your httpd.conf

Avatar

Employee

On my side I always had to add the mime-handler.

Only when requests are not cached, then it will get the correct content-type from the AEM-side.