Limit maximal size and remove query parameters for now