May be this information will help you:
http://www.alexjs.eu/making-nginx-ignore-query-string-parameters/