mwrock / RequestReduce

Instantly makes your .net website faster by reducing the number and size of requests with almost no effort.
www.requestreduce.org
Apache License 2.0
228 stars 49 forks source link

http protocol added to CSS files. #239

Open justengland opened 11 years ago

justengland commented 11 years ago

Basically, when RR encounters a url in CSS it turns it into a link with the protocol.
ie: url("http://some-site.com/requestreducecontent/img/global.png")

it would be better to remove the protocol for css and js files ie: url("//some-site.com/requestreducecontent/img/global.png")

This causes unsecured content warnings when a site needs to run in both http and https modes. I have made a patch to fix it, although I am not sure it is the most optimal, but it works.

What do you think? https://github.com/justengland/RequestReduce/commit/370fb9ba214c4f3adc3f5d51397a9f5c00592d9d