|
Re: Why MD5 Headers are Imperative: msg#00412network.syndication.atom.protocol
Eric J. Bowman schrieb: Well, no matter what APP says, HTTP GET and PUT *always* transfer representations. That's by design in HTTP, and APP can't change that. That being said, I really don't understand how adding the sentence above changes anything. Well, I think everything will be much simpler if they are. It seems to me that you're trying to optimize for a use case that doesn't need optimization. Because WebDAV correctly assumes this determination is up to the editor. Since this is a perfectly reasonable fallback means of updating an Atom Entry Document when it is desirable to give this control to the editor, all the more reason to make sure that APP supports Atom-specific manipulations.Hu? Yes. So ETag (as HTTP cache validator) and app:updated (as something that can signal whether a feed reader should "redisplay" the entry) are very different things. This seem to be perfectly ok. If the server decides that the new content isn't really different (for instance because whitespace between XML attributes was changed, but the server stores the data in an XML-specific store anyway), it has the choice not to assign a new ETag. Why would it need to know? You do a PUT, the server says 200, so the content has been stored. If you're lucky, you also get a new ETag in the response. its cache-control settings, because the server owner/publisher has deemed it an insignificant change. In which case what does the user do with what appears to be a lost edit, when in fact it was accepted with the appropriate 200 OK response but whose message body contains the same cached version the editor started with? Why would it contain that? I'm not sure why that would happen. Here's the example: I'm generating summaries elsewhere on my site using the placement of the <p/> tag (just for the sake of the example, although re-Clarifying: you mean for those who read a transformed HTML version? Well, you will have clients refetch the contents although this wouldn't have been necessary. It will not affect the user experience, except for additional traffic/delay. How frequently are you doing these kinds of changes requiring the protocol to come up with a custom "fix" for that? It will be considered a content change on the HTTP level, that is the content is refetched; but on the Feed Reading level, it shouldn't show up unless atom:updated indeed changed as well. That seems to be completely ok to me. I think I now do understand what's going on, but I'm absolutely not convinced that it's a problem in practice. I do agree that id+updated doesn't make a very good ETag, so why don't you assign something better? HTTP defines how an ETag needs to behave. Well, at least for strong ETags. If you use id+updated as a strong ETag, and do non-significant edits on the resource, causing the ETag to stay the same, then you're not compliant to HTTP. Thus, id+updated can't be used as ETag unless you change "updated" with every change, which would defeat it's original purpose. Best regards, Julian |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Why MD5 Headers are Imperative: 00412, Eric J. Bowman |
|---|---|
| Next by Date: | Re: PaceNoServiceDocument: 00412, Eric J. Bowman |
| Previous by Thread: | Re: Why MD5 Headers are Imperativei: 00412, Eric J. Bowman |
| Next by Thread: | Re: Why MD5 Headers are Imperative: 00412, Eric Scheid |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |