Skip to search.
rest-discuss · REST Discussion Mailing List

Group Information

  • Members: 1401
  • Category: Protocols
  • Founded: Nov 13, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

  Messages Help
Advanced
Query parameters   Message List  
Reply Message #892 of 18829 |
Jeff Bone wrote:
>
> Paul Prescod wrote:
>
> > Er, who said you can't cache things in query strings?
>
> I assume you mean things with query strings. My info is a bit dated, but IIRC
> (from proxy work circa '94-'95) it used to be considered bad form for various
> reasons for proxy caches to cache "objects" (representations of resources)
> identified with URI that had query strings.

Yes, it was bad form for HTTP 1.0, but not HTTP 1.1:

"We note one exception to this rule: since some applications have
traditionally used GETs and HEADs with query URLs (those containing a
"?" in the rel_path part) to perform operations with significant side
effects, caches MUST NOT treat responses to such URIs as fresh unless
the server provides an explicit expiration time. This specifically means
that responses from HTTP/1.0 servers for such URIs SHOULD NOT be taken
from a cache"

> ... Maybe this isn't the case anymore;
> indeed, if the entire piece is considered as an opaque whole, on further
> consideration I'm not sure why this would be problematic. OTOH, its a bit
> semantically muddled; does the query string identify the resource or not?
I.e.,
> do the following refer to the same _resource_ or not?
>
> http://foo.com/some/resource
> http://foo.com/some/resource?p1=foo&p2=bar

No. I have seen nothing to indicate that they refer to the same
resource. URIs address unique identifiers unless some spec says
otherwise. HTTP doesn't say anything that would indicate to me that
those are the same resource:

* http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2.2

Paul Prescod



Thu Mar 7, 2002 3:04 am

paul@...
Send Email Send Email

Message #892 of 18829 |
Expand Messages Author Sort by Date

... Yes, it was bad form for HTTP 1.0, but not HTTP 1.1: "We note one exception to this rule: since some applications have traditionally used GETs and HEADs...
Paul Prescod
paul@... Send Email
Mar 7, 2002
3:07 am

... The query syntax clearly separates the bits that are opaque from the bits that are client-generated. This allows us to discuss the opacity axiom and still...
Paul Prescod
paul@... Send Email
Mar 7, 2002
4:00 am

... Right, that's my recalibrated understanding. But let me point something out: if this is true, then query parameters are pretty much useless and a kind of...
Jeff Bone
jbone@... Send Email
Mar 7, 2002
4:02 am

Dear all, I have a design question and I would like to ask for a feedback from the experts. Imagine to have a model where you have a document identified by an...
Fabio Mancinelli
fabiomancinelli Offline Send Email
Dec 19, 2008
11:38 am

Hi Fabio, Your question is a common one, so I captured my response on a wiki page to make it easier for future reference. Others on the list may further...
Steve Bjorg
steve_bjorg Offline Send Email
Dec 22, 2008
8:52 pm

(again with link... duh!) Hi Fabio, Your question is a common one, so I captured my response on a wiki page to make it easier for future reference. Others on...
Steve Bjorg
steve_bjorg Offline Send Email
Dec 22, 2008
8:55 pm

That's a great page on the topic! Tagged it for future use. -L...
groovepapa82 Offline Send Email Dec 22, 2008
10:20 pm

Hi Fabio, ... my first inclination would be to make the language segment mandatory and prepend it to all URIs: /{lang}/{docId} /{lang}/{docId}/versions ...
Aristotle Pagaltzis
a22pag Offline Send Email
Jan 7, 2009
11:19 am

imho, it doesn't matter at all , both of the approaches are fine , I would go with the second cos it just looks simpler to me . Although, a quick question - is...
Devdatta
bertie_woost... Offline Send Email
Jan 10, 2009
3:14 pm

... Not in REST terms, no. In URI design terms, it does. ... Wherever I have encountered server-driven language selection in the wild it has only ever annoyed...
Aristotle Pagaltzis
a22pag Offline Send Email
Jan 10, 2009
6:04 pm

... Never, ever use flags when you mean languages. Flags symbolize countries, not languages. The relationship between languages and countries is far from...
Leonardo Boiko
leoboiko Offline Send Email
Jan 10, 2009
7:50 pm

... Good point. ... The mention of flags in my mail was an afterthought and had little to do with what users would be thankful for. Regards, -- Aristotle...
Aristotle Pagaltzis
a22pag Offline Send Email
Jan 11, 2009
12:44 am

... This isn't a choice of language per se, it's a choice of original version over translation. "en" is a choice of language, "original version" is not. ... ...
Jon Hanna
hack_poet Offline Send Email
Jan 10, 2009
9:32 pm

... So where’s the conneg header that lets me pick original vs translation? If there isn’t one, the effect is the same – there are too few variables...
Aristotle Pagaltzis
a22pag Offline Send Email
Jan 11, 2009
1:04 am

Hi ... My point in the first mail was that IF conneg is sufficient for him to decide which translation to serve, then he should go for it over including it in...
Devdatta
bertie_woost... Offline Send Email
Jan 11, 2009
4:50 am

... My suggestion was example.org/en/somedoc which is easier to hack and in some web frameworks also easier to dispatch (because the language is in a fixed...
Aristotle Pagaltzis
a22pag Offline Send Email
Jan 11, 2009
9:33 pm

... I like this URI structure, but doing so because of "some" web frameworks is about the worst reason imaginable. - Steve ... Steve G. Bjorg ...
Steve Bjorg
steve_bjorg Offline Send Email
Jan 11, 2009
9:40 pm

... It’s bad as a reason but nice as a bonus. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>...
Aristotle Pagaltzis
a22pag Offline Send Email
Jan 11, 2009
9:47 pm

... It seems weird to be encoding language into the URI of a resource when one of the goals of HTTP, resource variants, and content negotiation was to keep the...
Noah Slater
ntbslater Offline Send Email
Jan 12, 2009
1:23 am

... Different-language versions are rarely fungible in the way that different-content-type versions are. Even then the concept is fraught with leaky...
Aristotle Pagaltzis
a22pag Offline Send Email
Jan 12, 2009
8:22 am

... Saying that content types are fungible is fallacious. One HTML representation of a resource may be totally different from another. Web architecture does...
Noah Slater
ntbslater Offline Send Email
Jan 12, 2009
12:09 pm

... I completely agree with you here - but apparently, according to previous discussions, separate representations are best treated as separate resources. Even...
Mike
pleb1985 Offline Send Email
Jan 12, 2009
12:56 pm

... This advice ignores a significant chunk of Web architecture. ... Sure, there are cases when you want to be able to link to a specific representation, and...
Noah Slater
ntbslater Offline Send Email
Jan 12, 2009
1:14 pm

... This can be a real rathole. In the last multilingual system I worked on, there was no question that each language variant was a resource and the resources...
Bill de hOra
bdehora Offline Send Email
Jan 14, 2009
12:01 am

... It is actually the other way around. Changing the language in a UA is the inconvenient part, and it is likely because users don't change their language...
Subbu Allamaraju
sallamar Offline Send Email
Jan 11, 2009
8:34 am

I haven't read the full thread in all details but here are my thoughts on internationalization (i18N) based upon over a decade of experience. 1. Don't confuse...
Alan Dean
alan_james_dean Offline Send Email
Jan 11, 2009
11:00 am

Alan, Great write up! You should wiki it! ;) - Steve ... Steve G. Bjorg http://mindtouch.com http://twitter.com/bjorg irc.freenode.net #mindtouch...
Steve Bjorg
steve_bjorg Offline Send Email
Jan 11, 2009
8:04 pm

Note to self: add to RestPatterns wiki also!...
Alan Dean
alan_james_dean Offline Send Email
Jan 11, 2009
8:24 pm

Also added to rest patterns wiki now http://restpatterns.org/Articles/HTTP_i18N_Patterns...
Alan Dean
alan_james_dean Offline Send Email
Jan 17, 2009
5:43 pm
First  | < Prev  |  Next > Last 
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help