Re: ETag and resource representations
Jan Algermissen <[email protected]> Wed, 14 Aug 2013 16:11:11 +0200
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <[email protected]> |
Hubert, On 14.08.2013, at 03:11, Hubert A Le Van Gong <[email protected]> wrote: > Greetings, > > I have a question about associating ETag to resources in a REST-based architecture. > Would you recommend associating a single ETag to the canonical (i.e. complete) resource or rather use a different ETag for each representations of said resource. > For instance, if I consider a library (full of books) as a resource. The view of that resource (i.e. the list of books returned) may vary based on the age of the reader (or any other criteria). Should I consider one ETag for the library as a whole or should I create an ETag for each representation returned to each reader? > ETag applies to the representation. If the actual bytes of the representation differ the ETag must differ. Jan > Maybe another way to ask the same question: should the ETag management solely be based on the resource or also influenced by other factors surrounding requests for it (e.g. policies etc.)? > > Cheers, > Hubert > > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/rest-discuss/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/rest-discuss/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/