Don't create the filter instances before checking whether a 304 can be returned.

Warning: This renames lib/getFilter{ => Info}sAndTargetContentTypeFromQueryString.js and changes its API, which some other projects are relying on.