Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2457)

Issue 1605041: Fix for shindig bug 1346- do not cache 304 responses from origin server

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by pradnya
Modified:
13 years, 10 months ago
Reviewers:
Paul Lindner, shindig.remailer
CC:
johnfargo, gagan.goku, anupama.dutta
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Do not cache server response if the response is a 304.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/http/AbstractHttpCache.java View 1 chunk +5 lines, -0 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/http/AbstractHttpCacheTest.java View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 6
pradnya
13 years, 10 months ago (2010-06-08 10:19:54 UTC) #1
Paul Lindner
seems fine for a first cut. I assume the etag etal support comes later...
13 years, 10 months ago (2010-06-08 12:17:40 UTC) #2
johnfargo
Yes... but it's also orthogonal IMO. The point here is that, regardless the fetcher's behavior, ...
13 years, 10 months ago (2010-06-08 13:05:30 UTC) #3
Paul Lindner
/me nods We'll still need to fix the processing so we don't respond with 304s ...
13 years, 10 months ago (2010-06-08 13:15:48 UTC) #4
johnfargo
Sounds good re: committing this. Re: the remainder, I believe I agree but if I'm ...
13 years, 10 months ago (2010-06-10 15:31:17 UTC) #5
johnfargo
13 years, 10 months ago (2010-06-10 15:43:43 UTC) #6
(patch committed as r953355, thanks!)

On Thu, Jun 10, 2010 at 7:30 PM, John Hjelmstad <johnfargo@gmail.com> wrote:

> Sounds good re: committing this.
>
> Re: the remainder, I believe I agree but if I'm not mistaken the underlying
> issue is whether we want to support being a "full" HTTP client in the
> ETags/If-Modified-Since/etc sense. The issue that gave rise to this behavior
> is that an HttpFetcher was modified to include such behavior. Without them,
> we won't get 304s in the first place. Should we support this in a more
> explicit way?
>
> Let me know if I'm missing the motivation behind the use cases you
> describe.
>
> Cheers,
> --j
>
>
> On Tue, Jun 8, 2010 at 5:15 PM, Paul Lindner <lindner@inuus.com> wrote:
>
>> /me nods
>>
>> We'll still need to fix the processing so we don't respond with 304s to
>> the client and deal with the situation where we get a 304 and the cache
>> entry is invalidated below us -- again that's follow on work.
>>
>> So let's go ahead and commit this then..
>>
>>
>> On Tue, Jun 8, 2010 at 6:05 AM, John Hjelmstad <johnfargo@gmail.com>wrote:
>>
>>> Yes... but it's also orthogonal IMO.
>>>
>>> The point here is that, regardless the fetcher's behavior, we shouldn't
>>> cache a 304 -- there's no guarantee that the Shindig fetcher's behavior is
>>> tied to the original request (esp. request headers such as If-None-Match et
>>> al). Stated another way, this is Shindig-as-fetcher-to-site rather than
>>> client-as-fetcher-to-Shindig.
>>>
>>> Etag support lives more on the "front end" of the proxying pipeline,
>>> utilizing state that's under the control of the shindig back-end.
>>>
>>> --j
>>>
>>> On Tue, Jun 8, 2010 at 5:47 PM, <lindner@inuus.com> wrote:
>>>
>>>> seems fine for a first cut.  I assume the etag etal support comes
>>>> later...
>>>>
>>>>
>>>>
>>>> http://codereview.appspot.com/1605041/show
>>>>
>>>
>>>
>>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b