Set cache-control to no-cache

The previous value, no-store, did not allow CDNs to do their work.
This commit is contained in:
ByteHamster 2020-10-14 16:56:15 +02:00
parent 2854346635
commit 983c0a464e
1 changed files with 1 additions and 0 deletions

View File

@ -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())) {