Make current_url? work with HEAD requests and remove caching_allowed? since it doesn't do anything

Part 2 of this PR: https://github.com/rails/rails/pull/9032