Open kingonly opened 7 years ago
Yes - that looks like it doesn't manage querystrings at all.
Maybe it's time to parse lowercaseUrl with require('querystring')
happy to take a PR with tests for your scenario if you are up for it?
Sure. Maybe something like req.url.match(/.(js|css)([^\w]|$)/) would be better.
This code:
if ((lowercaseUrl.indexOf('.js', req.url.length - 3) !== -1) || (lowercaseUrl.indexOf('.css', req.url.length - 4) !== -1)) {
won't work if there are query params after the js/css path. Am I missing something?