Middleware static - Properly merge options, allow getOnly to be configured.

Pretty small change, but I needed getOnly to be false on a recent project, and found that it was hard coded to `true`. Fixed up options merging and made getOnly configurable.