[ https://issues.apache.org/jira/browse/HTTPCLIENT-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17735574#comment-17735574 ]
Oleg Kalnichevski commented on HTTPCLIENT-1347: ----------------------------------------------- This is how the same session looks with the latest changes. There is only two resource entries (for asset 1 and asset 2). No more duplicated resources in the root entries. {noformat} getting entry: http://localhost:8000/assets/1 getting entry: http://localhost:8000/assets/1 getting entry: http://localhost:8000/assets/1 putting entry: {Accept-Encoding=gzip%2C+x-gzip%2C+deflate}http://localhost:8000/assets/1 updating entry: http://localhost:8000/assets/1 getting entry: http://localhost:8000/assets/1 putting entry: http://localhost:8000/assets/1 getting entry: http://localhost:8000/assets/2 getting entry: http://localhost:8000/assets/2 getting entry: http://localhost:8000/assets/2 putting entry: {Accept-Encoding=gzip%2C+x-gzip%2C+deflate}http://localhost:8000/assets/2 updating entry: http://localhost:8000/assets/2 getting entry: http://localhost:8000/assets/2 putting entry: http://localhost:8000/assets/2 getting entry: http://localhost:8000/assets/1 getting entry: {Accept-Encoding=gzip%2C+x-gzip%2C+deflate}http://localhost:8000/assets/1 getting entry: http://localhost:8000/assets/2 getting entry: {Accept-Encoding=gzip%2C+x-gzip%2C+deflate}http://localhost:8000/assets/2 Root entry: key: http://localhost:8000/assets/2; variants: {{Accept-Encoding=gzip%2C+x-gzip%2C+deflate}={Accept-Encoding=gzip%2C+x-gzip%2C+deflate}http://localhost:8000/assets/2} Root entry: key: http://localhost:8000/assets/1; variants: {{Accept-Encoding=gzip%2C+x-gzip%2C+deflate}={Accept-Encoding=gzip%2C+x-gzip%2C+deflate}http://localhost:8000/assets/1} Resource entry: key: {Accept-Encoding=gzip%2C+x-gzip%2C+deflate}http://localhost:8000/assets/2; content length: 904333 Resource entry: key: {Accept-Encoding=gzip%2C+x-gzip%2C+deflate}http://localhost:8000/assets/1; content length: 793875 {noformat} > gzip responses doubly cached > ---------------------------- > > Key: HTTPCLIENT-1347 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1347 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: HttpCache > Affects Versions: 4.2.5 > Environment: ARCH Linux kernel 3.8.8-1 > node.js 0.8.22 > Reporter: Adam Patacchiola > Priority: Major > Labels: stuck, volunteers-wanted > Fix For: Stuck > > Attachments: Archive.zip, Screen Shot 2014-01-11 at 7.11.36 PM.png, > Screen Shot 2014-01-13 at 3.56.19 PM.png, Showing_entry_pointer.png, > httpClientCacheTest.tar.gz, httpClientTestServer.js, output.out > > > Compressed responses are cached twice. > Run the attached server (node.js 0.8.22) and client tests. Create an "assets" > directory under where you are running the server and add two files named 1 > and 2 ( < 1000000 bytes) . You will see that after the test is run the cache > dump output displays 2 sets of entries for each request, each containing the > full content length of the file. > Changing the implementation of HttpCacheStorage updateEntry to not update non > existent entries (as I believe the correct implementation should do) throws > exceptions. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org