sbt / sbt-site

Site generation for sbt
http://www.scala-sbt.org/sbt-site/
Other
174 stars 74 forks source link

Svg files not loading in Chrome/Safari when "preview"ed #144

Open ustamansangat opened 5 years ago

ustamansangat commented 5 years ago

https://github.com/sbt/sbt-site/blob/dee21a1dae72a13fb2840147595649c4a97dbbcd/src/main/scala/com/typesafe/sbt/site/preview.scala#L53-L63.

The above doesn't set a Content-Type response header, the browser displays it as a broken image.

ennru commented 5 years ago

Was that with Jekyll? Then this is fixed with #138, could you check, please.

matthiasS-da commented 5 years ago

I upgraded to version 1.4.0 and retried. I still don't see svg pictures in Chrome/Safari. In Firefox I could see them.

The developer console of Chrome reports Server Errors (code 500) when loading the picture (or when loading fonts, js scripts, ...) I can however directly load the picture from Chrome.