RE: Atom and prev links
"Markus Lanthaler" <[email protected]> Fri, 28 Jun 2013 14:04:40 +0200
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <[email protected]> |
On Friday, June 28, 2013 12:58 PM, Greg Young wrote: > Actually we have a pretty simple reason for this caching. > > If we were to hide the prev that uri would have to be non-cachable. > If we put it there (we are forward only) then every valid uri we > have is infinitely cachable. By predefining the next only our > non-existant uri is non-cachable. Well, a 404 can be cached as well, so it's not that much of a difference. Just use an Etag or something similar for the last page and drop it as soon as you put the link in. If I would implement a client, I wouldn't keep polling the 404. I would just assume your feed is broken. -- Markus Lanthaler @markuslanthaler