java - HttpResponseCache not caching urls without Content-Length header -


using stock android examples httpurlconnection , httpresponsecache, have created bare bones app calls 2 urls, twice. first 1 without content-length , second 1 content-length.

i can see in charles endpoint without content-length not cached. removed content-length caching url , confirmed prevents caching well.

unfortunately there no way have gzipping , content-length in restify according gzip plugin docs.

is there way force httpresponsecache cache url when content-length missing? logic behind not caching urls without content-length? (ios caches without content-length)

*using volly or restify last resort due large existing codebase.

ended moving retrofit had no issues caching without content-length header.


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -