I\'m trying to get this simple code to work:
I was experiencing the first of the problems described by @r3mainer.
On my lighttpd server the problem was caused by the missing
".svg" => "image/svg+xml",
line in the mimetype.assign section of the lighttpd configuration file.
mimetype.assign