Add content-type and not-modified middleware