Skip to content

URL is rewritten and port is added before jarcache.json lookup #287

@ircecho

Description

@ircecho

On 0.12.3, I was trying to decode a json+ld with

"@context": "https://schema.org"

So I added the following to jarcache.json

  {
    "Content-Location": "http://schema.org",
    "X-Classpath": "jsonldcontext.json",
    "Content-Type": "application/ld+json"
  }

This did not work as expected, the cache was not used. After odious debugging I found the cache was searched with the port number added, so I could produce a cache hit only with the following entry:

  {
    "Content-Location": "https://schema.org:443/",
    "X-Classpath": "jsonldcontext.json",
    "Content-Type": "application/ld+json"
  }

This is certainly unexpected. Why rewrite the URL before cache lookup? Also the documentation suggests, that the port number is not necessary. Please fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions