letsencrypt/lets-encrypt-preview — pull request #17 by dol (2014-11-19 08:33:48+00:00)
Title: Reduce the matching of REWRITE_HTTPS_ARGS and add query string

If the backreference of the match is not used, it's enough to match '^' instead of '^.*$'. It's slightly faster.

^ -> Match, if it starts
^.*$` -> Match, if everything matches

In addition it might be useful to append the query string with the flag: QSA