OkHttp Caching Policies and ETags -


i had questions okhttp , how chooses caching:

  1. does okhttp honor weak etag (which used default in tomcat 7)? read somewhere chrome ignores weak etags in favor of last-modified response header. i'm not if true chrome, wanted confirm okhttp.
  2. does okhttp prioritize etag header on last-modified header in terms of caching policies? or last-modified header prioritized? okhttp follow spec determine this? or implementation detail?

  1. okhttp doesn't differentiate between types of etags. if server response includes etag header, used okhttp.

  2. okhttp prefers etag on last-modified. it's implementation detail.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -