Add test to verify if caching works with HEAD

Rails doesn't do its own GET -> HEAD translation anymore so we need to
check if caching is allowed with HEAD too.
Add caching_allowed? that has been removed from Rails core
Merge pull request #1 from michiels/add-caching-allowed

Adds caching_allowed? method that has been removed from Rails core