Set cache-control to no-cache
The previous value, no-store, did not allow CDNs to do their work.
This commit is contained in:
parent
2854346635
commit
983c0a464e
|
@ -71,6 +71,7 @@ public class HttpDownloader extends Downloader {
|
|||
// set header explicitly so that okhttp doesn't do transparent gzip
|
||||
Log.d(TAG, "addHeader(\"Accept-Encoding\", \"identity\")");
|
||||
httpReq.addHeader("Accept-Encoding", "identity");
|
||||
httpReq.cacheControl(new CacheControl.Builder().noCache().build()); // noStore breaks CDNs
|
||||
}
|
||||
|
||||
if (!TextUtils.isEmpty(request.getLastModified())) {
|
||||
|
|
Loading…
Reference in New Issue