jtrupiano / rack-rewrite

A web server agnostic rack middleware for defining and applying rewrite rules. In many cases you can get away with Rack::Rewrite instead of writing Apache mod_rewrite rules.

Home Page:http://github.com/jtrupiano/rack-rewrite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resource interpreted as image but transferred with MIME type text/html.

tobinharris opened this issue · comments

Awesome tool btw, thanks :)

I see that all redirects seem to have MIME type text/html, is there a way of getting around this. Not good for JS/CSS/images.

Is it normally Rack that interprets the mim-type based on the requested file suffix?

Hey, I've gone ahead and pushed version 1.0.1. Instead of interpreting the MIME type based on the requested file suffix, I instead interpret the translated file suffix. Let me know if this does the trick for you.

Great stuff, I'll give it a go. Thanks.

Beautiful, thanks

Great, thanks for confirming that it works.