Remove trailing slash in cache locations