[Catalyst] Catalyst, Firefox and SVG

Andy Grundman andy at hybridized.org
Fri Dec 9 05:19:54 CET 2005

Maurice Height wrote:
> I am trying out a very simple Catalyst application via the built-in test 
> server as a learning exercise.
> I want to display an SVG image in a HTML page.
> Internet Explorer and Firefox v1.5 both display the SVG doc correctly 
> when I open it manually.
> Internet Explorer also works correctly when I access the SVG doc via my 
> Catalyst application.
> but Firefox just displays the SVG doc as text listing.

Firefox is a stickler for MIME types, and the latest version of 
MIME::Types does not include one for svg.  You will have to set the type 

MyApp->config->{static}->{mime_types} = {
     svg => 'image/svg+xml',


More information about the Catalyst mailing list