Check for query string before checking extension any type.