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

Issue 214045: Serve cached stale data if receiveing external server error for a resource

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 11 months ago by zhoresh
Modified:
15 years, 11 months ago
Reviewers:
johnfargo, chirag, shindig.remailer
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

If we have data for a resource, lets serve it even if it stale in cases that the external resource is not available. Only serve non error pages, and only for server error (>=500)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed according to comments and added tests. #

Messages

Total messages: 5
zhoresh
15 years, 11 months ago (2010-02-18 17:50:02 UTC) #1
chirag
http://codereview.appspot.com/214045/diff/1/4 File java/gadgets/src/main/java/org/apache/shindig/gadgets/http/AbstractHttpCache.java (right): http://codereview.appspot.com/214045/diff/1/4#newcode240 java/gadgets/src/main/java/org/apache/shindig/gadgets/http/AbstractHttpCache.java:240: return true; Could be simplified to return response != ...
15 years, 11 months ago (2010-02-19 07:06:36 UTC) #2
johnfargo
Nothing new here. We need a DefaultRequestPipelineTest though. http://codereview.appspot.com/214045/diff/1/4 File java/gadgets/src/main/java/org/apache/shindig/gadgets/http/AbstractHttpCache.java (right): http://codereview.appspot.com/214045/diff/1/4#newcode240 java/gadgets/src/main/java/org/apache/shindig/gadgets/http/AbstractHttpCache.java:240: return ...
15 years, 11 months ago (2010-02-19 19:18:06 UTC) #3
zhoresh
Fixed according to comments and added tests.
15 years, 11 months ago (2010-02-19 22:56:34 UTC) #4
johnfargo
15 years, 11 months ago (2010-02-20 03:54:17 UTC) #5
Thanks for the test, looks great.

Committed.

On Fri, Feb 19, 2010 at 2:56 PM, <zhoresh@gmail.com> wrote:

> Fixed according to comments and added tests.
>
>
> http://codereview.appspot.com/214045/show
>
Sign in to reply to this message.

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