https
cache.rb: should not cache dry run

this bug is introduced that dry run does contain request method from
build_env as well
just make sure env is correct