Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Issue 52028: Net module changes to support caching responses to a POST request. (Closed)

Created:
11 years, 9 months ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Net module changes to support caching responses to a POST request. The solution is to add a user-defined identifier to UploadData. If that identifier is set, and if the request method is POST, then HttpCache will enable caching for the response. (The cache key will be a composition of the identifier and the URL.) A subsequent POST request to the same URL with the same identifier will "hit" the previously generated cache entry. Reuse from the cache is subject to all of the standard rules. BUG=2636 R=wtc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12374

Patch Set 1 #

Total comments: 12

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -48 lines) Patch
M net/base/upload_data.h View 1 2 2 chunks +13 lines, -2 lines 0 comments Download
M net/http/http_cache.h View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M net/http/http_cache.cc View 1 2 3 chunks +45 lines, -36 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 5 chunks +58 lines, -7 lines 0 comments Download
M net/http/http_request_info.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
darin (slow to review)
11 years, 9 months ago (2009-03-23 22:28:19 UTC) #1
wtc
LGTM. Is there a bug number for this issue? Your CL description implies that changes ...
11 years, 9 months ago (2009-03-23 23:38:35 UTC) #2
wtc
I forgot to say that I'm glad to see you fixed this bug. I use ...
11 years, 9 months ago (2009-03-23 23:39:49 UTC) #3
darin (slow to review)
Thanks for the review! Sorry for the spartan CL comments. Updated... http://codereview.chromium.org/52028/diff/1/6 File net/base/upload_data.h (right): ...
11 years, 9 months ago (2009-03-24 06:30:24 UTC) #4
wtc
LGTM. Just some nits and minor questions below. Please go ahead and check this in ...
11 years, 9 months ago (2009-03-24 16:52:32 UTC) #5
darin (slow to review)
Thanks again for the review! http://codereview.chromium.org/52028/diff/1005/19 File net/base/upload_data.h (right): http://codereview.chromium.org/52028/diff/1005/19#newcode94 Line 94: void swap_elements(std::vector<Element>& elements) ...
11 years, 9 months ago (2009-03-24 17:13:22 UTC) #6
wtc
11 years, 9 months ago (2009-03-24 17:39:14 UTC) #7
LGTM.  Nice CL description!

Powered by Google App Engine
This is Rietveld 408576698