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

Issue 63210: Per-browser rpc.js (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 3 months ago by johnfargo
Modified:
16 years, 1 month ago
Reviewers:
shindig.remailer, etnu00
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

Implementation of JsFeatureLoader that loads only the rpc.js transport code needed by the target browser. To use this, a concrete implementation of UserAgent.Parser must be provided and bound. In addition, JsFeatureLoader must be bound to implementation SmartRpcJsFeatureLoader. This code is not widely tested, and should be deemed experimental. [replaced by http://codereview.appspot.com/63225]

Patch Set 1 #

Total comments: 2

Messages

Total messages: 4
johnfargo
16 years, 3 months ago (2009-06-09 02:17:35 UTC) #1
Paul Lindner
Looks interesting, however it doesn't appear that this sets the Vary or Cache-Control headers to ...
16 years, 3 months ago (2009-06-09 17:48:06 UTC) #2
etnu00
This code completely fails to take into account caches out in front of the gadget ...
16 years, 3 months ago (2009-06-09 17:48:08 UTC) #3
johnfargo
16 years, 3 months ago (2009-06-09 20:25:45 UTC) #4
Hi Paul:

You're absolutely right. Vary: User-Agent; is preferable to me. Do you have any
reason in mind for why Cache-Control: private in addition to or instead of Vary
would be preferable? Ie. common support by various CDNs.

I've been thinking how best to link service of custom rpc to setting this
header. Ultimately JsServlet or a Filter needs to do so. Thoughts on this? The
best idea I had was to add something like isBrowserSpecific() to JsLibrary so
that the relevant output code (gadget rendering, js servlet) could act
accordingly.

Kevin - re: StringBuffer, comment isn't particularly prescriptive so I'll assume
the complaint is use of StringBuffer rather than StringBuilder. If so, fixed. If
not, let me know.
Sign in to reply to this message.

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