Skip to content

Commit

Permalink
Merge pull request #170 from felixxfwang/dev
Browse files Browse the repository at this point in the history
Fix Sonic still send request in FirstLoad mode when server return Cache-Offline: http
  • Loading branch information
vasdeveloper authored Nov 23, 2017
2 parents c903273 + 023988d commit 35e666a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,15 @@ static boolean setSonicUnavailableTime(String sessionId, long unavailableTime) {
sessionData.unAvailableTime = unavailableTime;
updateSessionData(db, sessionId, sessionData);
return true;
} else {
sessionData = new SessionData();
sessionData.sessionId = sessionId;
sessionData.eTag = "Unknown";
sessionData.htmlSha1 = "Unknown";
sessionData.unAvailableTime = unavailableTime;
insertSessionData(db, sessionId, sessionData);
return true;
}
return false;
}

/**
Expand Down

0 comments on commit 35e666a

Please sign in to comment.