You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requests to http://schema.org can either return the html home page or [if an accept type of application/ld+json is passed in the request] it can return the json-ld context file.
With http caching enabled, using etags etc. browsers (Chrome) are not differentiating between the two.
Result is that if a browser has cached the context file, prior to visiting the home page, the user can be presented with JSON-LD output instead of the html home page.
Also if the html version of the page has been cached in the browser when applications such as JSON-LD Playground request the context file, they get the html which causes an error reading the context.
Fix required to ensure that json-ld context and html home page are not confused in browser caches.
The text was updated successfully, but these errors were encountered:
In-browser caching conflicts between home page and json-ld context
Ensure output of 'vary' header.
Collect outputing of json-ld context in one place and redirect to it from home page.
Requests to http://schema.org can either return the html home page or [if an accept type of application/ld+json is passed in the request] it can return the json-ld context file.
With http caching enabled, using etags etc. browsers (Chrome) are not differentiating between the two.
Result is that if a browser has cached the context file, prior to visiting the home page, the user can be presented with JSON-LD output instead of the html home page.
This happens if an in-browser application asks for the context file. Example applications where this can occur include the JSON-LD Playground and the Openlink Structured Data Sniffer extension tool.
Also if the html version of the page has been cached in the browser when applications such as JSON-LD Playground request the context file, they get the html which causes an error reading the context.
Fix required to ensure that json-ld context and html home page are not confused in browser caches.
The text was updated successfully, but these errors were encountered: