Updated creating of cache key to handle 0 as resize argument.