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/htmlhttp://example.com/essay.html
  • application/xhtml+xmlhttp://example.com/essay.xhtml
  • application/pdfhttp://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 alternate keyword used type attribute, 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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -