You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OkHttpConnector_Cache_MaxAgeDefault_Zero fails when Last-Modified header is correct format #597
The OkHttp 2.7.5 connector test for caching fails when the test data is updated.
Before the attached commit, the generated string was in the format: "2019-09-06T23:26:04Z"
After the change, the generated string is in the correct RFC-1123 format: "Fri, 06 Sep 2019 23:26:04 GMT"
This second one is what GitHub returns.
Changing the offset to a time much further in the past (`offset='-10007 seconds', for example) does not fix the behavior.
I'm not sure if this is a problem with the test data or OkHttp, but OkHttp3 works as expected.
changed the title [-]OkHttpConnector_Cache_MaxAgeDefault_Zero fails when Last-Modified header is correct format[/-][+]OkHttpConnector_Cache_MaxAgeDefault_Zero fails when `Last-Modified` header is correct format[/+]on Nov 7, 2019
Some comparing of the responses that come back from GitHub and the generated test data show:
GitHub Last-Modified stays the same for same for 304 cache hits
Test-generated Last-Modified changes for each response due to limitations in the templating engine. Actually, it is less a hard limitation but that getting the behavior to match GitHub is more difficult.
This test important, but more in an informational sense than in a day-to-day sense. As long as the OkHttp3 version of the test works, we can leave this test turned off for now.
Activity
Updated Last-Modified headers
[-]OkHttpConnector_Cache_MaxAgeDefault_Zero fails when Last-Modified header is correct format[/-][+]OkHttpConnector_Cache_MaxAgeDefault_Zero fails when `Last-Modified` header is correct format[/+]bitwiseman commentedon Nov 7, 2019
Some comparing of the responses that come back from GitHub and the generated test data show:
Last-Modifiedstays the same for same for304cache hitsLast-Modifiedchanges for each response due to limitations in the templating engine. Actually, it is less a hard limitation but that getting the behavior to match GitHub is more difficult.This test important, but more in an informational sense than in a day-to-day sense. As long as the OkHttp3 version of the test works, we can leave this test turned off for now.
bitwiseman commentedon Mar 15, 2021
OkHttp 2.x has been deprecated.
Fix GZIP in OkHttpResponseConnector, also fixes hub4j#597.