[spec] What to do of fragments when there is a redirection
John Cowan
cowan at ccil.org
Mon Dec 28 03:25:28 GMT 2020
On Sat, Dec 26, 2020 at 10:18 AM Solderpunk <solderpunk at posteo.net> wrote:
> > 2) If the client gets a redirect containing a fragment, the client MUST
> > apply this fragment when the redirected resource is retrieved, ignoring
> > any
> > original fragment.
>
I haven't got any idea why HTTP/1.1 prescribes this behavior either. Your
idea of redirecting a whole page to part of another page is probably the
best explanation, but I'll do more research on it.
> 3) If the original URL has a fragment and the redirect doesn't, the
> > client
> > MUST apply the original fragment when the redirected resource is
> > retrieved.
>
This part I do understand. Since the meaning of a fragment depends on the
media type and not the rest of the URL, then if a server is redirecting a
request to the document's new home, the client should carry over the
fragment id from the original URL. In this case the fragment id doesn't
participate in the protocol at all.
This rule should exist even if text/gemini doesn't have a fragment
definition, because Gemini protocol can host any media type including HTML.
John Cowan http://vrici.lojban.org/~cowan cowan at ccil.org
Fundamental thinking is ha-ard. Let's go ideology-shopping.
--Philosopher Barbie
John Cowan http://vrici.lojban.org/~cowan cowan at ccil.org
LEAR: Dost thou call me fool, boy?
FOOL: All thy other titles thou hast given away:
That thou wast born with.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20201227/807d764c/attachment-0001.htm>
More information about the Gemini
mailing list