Once MAGNOLIA-5292 is fixed, we should also introduce additional check to ensure that it is possible to return content with wrong extension, e.g. serving jpg image with zip extension and similar.
Set correct Content-Type header of rendered content in renderers
Set contentType correctly in ImagingServlet
Set contentType in ResourcesServlet
Images are displayed regardless of its extension
Content-type of a rendered page should not be a function of the request