[JIRA] (JENKINS-59630) Use newer version of Okhttp >= 3.4.0

0 views
Skip to first unread message

moldenhauer_maxim@bah.com (JIRA)

unread,
Oct 2, 2019, 1:18:10 PM10/2/19
to jenkinsc...@googlegroups.com
Maxim Moldenhauer created an issue
 
Jenkins / New Feature JENKINS-59630
Use newer version of Okhttp >= 3.4.0
Issue Type: New Feature New Feature
Assignee: Unassigned
Components: github-api-plugin
Created: 2019-10-02 17:17
Priority: Minor Minor
Reporter: Maxim Moldenhauer

I am experience an issue due to the okhttp caching behavior that existed in versions prior to okhttp 3.4.0. When a network response comes back with a 200 status code where the Last-Modified header is older than the cached response, it combines the headers including the ETag from the network response, but keeps the old cached content. This results in persistent error where the cached response is a maintenance page, but the ETag corresponds to the appropriate JSON response. Going forward, we keep getting 304 status codes even though the cached content doesn't really match the ETag.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

moldenhauer_maxim@bah.com (JIRA)

unread,
Nov 8, 2019, 3:32:02 PM11/8/19
to jenkinsc...@googlegroups.com

moldenhauer_maxim@bah.com (JIRA)

unread,
Nov 8, 2019, 3:32:02 PM11/8/19
to jenkinsc...@googlegroups.com
Maxim Moldenhauer updated an issue
I am experience experiencing an issue due to the okhttp caching behavior that existed in versions prior to okhttp 3.4.0. When a network response comes back with a 200 status code where the Last-Modified header is older than the cached response, it combines the headers including the ETag from the network response, but keeps the old cached content. This results in persistent error where the cached response is a maintenance page, but the ETag corresponds to the appropriate JSON response. Going forward, we keep getting 304 status codes even though the cached content doesn't really match the ETag.

moldenhauer_maxim@bah.com (JIRA)

unread,
Nov 8, 2019, 3:33:02 PM11/8/19
to jenkinsc...@googlegroups.com
Maxim Moldenhauer updated an issue
Change By: Maxim Moldenhauer
Issue Type: New Feature Bug
Reply all
Reply to author
Forward
0 new messages