http headers - Link relation type for linking representations to the abstract resource? -
i use content negotiation let user-agents select 1 of several representations resource.
example: resource http://example.com/essay has following representations:
text/html→http://example.com/essay.htmlapplication/xhtml+xml→http://example.com/essay.xhtmlapplication/pdf→http://example.com/essay.pdf
let’s user-agent selects html variant. link other representations link relation type alternate:
<link rel="alternate" type="application/xhtml+xml" href="/essay.xhtml"> <link rel="alternate" type="application/pdf" href="/essay.pdf"> but when has uri http://example.com/essay.html, how ever know content-type neutral uri http://example.com/essay, e.g. sending link without enforcing he’d want see html variant, too?
is there link type link "abstract" resource (http://example.com/essay)?
i can’t use alternate link relation type link too, resource has no content type:
if
alternatekeyword usedtypeattribute, indicates referenced document reformulation of current document in specified format.
i don’t think canonical link relation type appropriate here. work in cases, maybe want html variant canonical 1 (for indexing search engines etc.). when i’d make http://example.com/essay canonical one, search engines (in principle) use pdf variant indexing.
Comments
Post a Comment