Use join to join path and file
Add a leading slash in the http_url of the caches
Update the tests