Ghost/core/server/web/site
Kevin Ansfield 830610d243 Fixed serving of binary public files
no issue

- serving of our public asset images was broken
  - we were reading the binary file in as a string so we could do url transforms, this meant data was lost/corrupted and browsers could not display the served data
  - we were using the wrong mime-type for pngs which meant browsers were triggering downloads rather than displaying images (at least when accessed directly)
- updates uses of `servePublicFile` to have the correct png mimetype
- adjusts `servePublicFile` to treat any mime type starting with `image` as a binary file, passing the file directly through express using `res.sendFile` and skipping the in-memory content caching which is mostly only useful for text files with URL transforms
2020-02-10 09:51:32 +00:00
..
app.js Fixed serving of binary public files 2020-02-10 09:51:32 +00:00
index.js Moved apps into web folder (#9308) 2017-12-06 17:37:54 +01:00
routes.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00