Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for different MIME types in dev mode. #556

Closed
arxpoetica opened this issue May 29, 2015 · 4 comments
Closed

Allow for different MIME types in dev mode. #556

arxpoetica opened this issue May 29, 2015 · 4 comments

Comments

@arxpoetica
Copy link
Member

See this thread: https://groups.google.com/forum/#!searchin/socketstream/mime/socketstream/PcKCoFcaSW0/pu_IrxHKsdYJ

It doesn't appear that we can serve different MIME types in development mode.

@thepian
Copy link
Member

thepian commented Jun 1, 2015

Wouldn't we want to move away from implementing a general purpose app server?

I would expect that it is trivial to prepend a middleware which will serve special mime types. In production you should have the static server handle this anyway I would think.

I'm not against the improvement, just think it is a distraction beyond documenting how to write your own static serving middleware for DEV time. There must be 100+ blog posts that explain how to do this with Connect/Express.

@arxpoetica
Copy link
Member Author

@thepian I don't disagree—however—currently it's not possible to hook into the middleware for the MIME type in dev mode—unless I'm missing something. _Update_ I'm realizing my comment might be flippant. :P I think you might be right. So, really, this issue might be moot. I'll investigate, and offer a solution to on that google thread. And add documentation. :)

@thepian thepian added this to the 0.4.x milestone Sep 25, 2015
@thepian
Copy link
Member

thepian commented Oct 1, 2015

We now have an Express 4 example.

@thepian thepian closed this as completed Oct 1, 2015
@arxpoetica
Copy link
Member Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants