adding query file name included

I wanted to serve content with query taken into account.

example: 
get foo.html?bar 
returns: YUM

get foo.html?foo
returns: YUCK