Open ika18 opened 11 years ago
Instead of adding this to front-end I'm thinking to add a rewrite
middleware.
So there would be three middleware? Front-end, back-end, and rewrite?
Yes. The idea here is that you'd first rewrite, then try to find a local version of the file, then try to proxy.
Sounds great. And it sounds like apache 'mod_rewrite' to rewrite some specific url that meet some pattern. And it's optional to user to use it or not.
It would be nice if the front-end module in addition to using directory structures could be controlled with regexps.