Configuring MIME types in WCM

I recently received a request from a WCM v7 customer who wanted to store KML files in WCM and render them via the WCM content servlet. When they did this, the Content-Type in the HTTP header was set to "unknown/unknown" and they wanted it to show "application/vnd.google-earth.kml+xml" so that the clients dealt with the KML file appropriately.

This can be done by specifying the mime type in the WCM Config Service properties file, along the lines described here

https://www-304.ibm.com/support/docview.wss?uid=swg21384863

Another approach would have been to do this from the HTTP Server but I advised that they use the WCM configuration since then all mime types are configured in once for the whole cluster and not once on each HTTP server, with the attendant possibility of error.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s