Add debug mode via DEBUG config var which forces Typhoeus and Ethon into verbose output mode
Prefetch endpoints (in parallel) before calculating a canonical endpoint
Pass domain object to endpoint to facilitating caching when one endpoint redirects to another
Calls to the root of an endpoint now have an explicit trailing slash to facilitate caching and prevent redirects
resolves_to now makes a HEAD request to the redirected URL, which could be potentially cached, if an internal redirect, and only makes a follow location request if the HEAD request returns a 30x response code.
Changes:
DEBUG
config var which forces Typhoeus and Ethon into verbose output moderesolves_to
now makes aHEAD
request to the redirected URL, which could be potentially cached, if an internal redirect, and only makes a follow location request if theHEAD
request returns a30x
response code.Fixes #72.