diff --git a/scrapy/contrib/downloadermiddleware/httpcache.py b/scrapy/contrib/downloadermiddleware/httpcache.py index 079189358..c10b121ed 100644 --- a/scrapy/contrib/downloadermiddleware/httpcache.py +++ b/scrapy/contrib/downloadermiddleware/httpcache.py @@ -81,8 +81,7 @@ class FilesystemCacheStorage(object): body = f.read() with open(join(rpath, 'response_headers'), 'rb') as f: rawheaders = f.read() - # We failback to metadata['url'] to support old generated caches. TODO: remove for Scrapy 0.11 - url = metadata.get('response_url') or metadata['url'] + url = metadata.get('response_url') status = metadata['status'] headers = Headers(headers_raw_to_dict(rawheaders)) respcls = responsetypes.from_args(headers=headers, url=url)