小编bbs*_*uui的帖子

排球中的entry.softTtl和entry.ttl有什么不同?

在类HttpHeaderParser中:

public static Cache.Entry parseCacheHeaders(NetworkResponse response) {
    long now = System.currentTimeMillis();

    Map<String, String> headers = response.headers;

    long serverDate = 0;
    long serverExpires = 0;
    long softExpire = 0;
    long maxAge = 0;
    boolean hasCacheControl = false;

    String serverEtag = null;
    String headerValue;

    headerValue = headers.get("Date");
    if (headerValue != null) {
        serverDate = parseDateAsEpoch(headerValue);
    }

    headerValue = headers.get("Cache-Control");
    if (headerValue != null) {
        hasCacheControl = true;
        String[] tokens = headerValue.split(",");
        for (int i = 0; i < tokens.length; i++) {
            String …
Run Code Online (Sandbox Code Playgroud)

java android android-volley

5
推荐指数
1
解决办法
1360
查看次数

标签 统计

android ×1

android-volley ×1

java ×1