fix 504 when using local cache in UrlConnectionDownloader