How to enable HTTP response caching in the DownloadManager?

前端 未结 1 1276
小鲜肉
小鲜肉 2021-01-15 15:27

I want repeat requests for a URL to be served from a local cache, not re-downloaded from the server. I\'m using the DownloadManager, hoping it\'ll be a convenient alternati

相关标签:
1条回答
  • 2021-01-15 16:20

    DownloadService downloads to a temporary destination by default. There is no build-in ability to cache requests, however you can query the list of downloads requested before with DownloadManager.query() method.

    0 讨论(0)
提交回复
热议问题