What I've done is I've added a "raw" controller that actually attempts to do its best to serve files with the right MIME type. It's remarkably fast--about 0.05 seconds to get a file's entire content and all associated information, even on a large branch like launchpad.
What I haven't yet done is added XSS protection, which is something I may do in a follow-up bug, since the work required for this was complex enough as it is.
What I've done is I've added a "raw" controller that actually attempts to do its best to serve files with the right MIME type. It's remarkably fast--about 0.05 seconds to get a file's entire content and all associated information, even on a large branch like launchpad.
What I haven't yet done is added XSS protection, which is something I may do in a follow-up bug, since the work required for this was complex enough as it is.