add max_size to caching proxy