- the Nitro middleware answers redirect (301/302, Location from the answer only, same-site targets as paths as in v0.1.1) and gone (410) before the render and the route cache, sets X-Robots-Tag, and answers 404 for a pagination.invalid answer; other not_found answers stay with Nuxt - resolve answers cached in an LRU (seo.resolveCacheTtl, default 60 s, 1000 entries) with in-flight de-duplication; a clear detaches loads in flight so no answer fetched before a purge is stored after it - the playground route-caches /blog/** (swr 300)
184 lines
4.5 KiB
JSON
184 lines
4.5 KiB
JSON
{
|
|
"/blog/lwia-grzywa": {
|
|
"action": "ok",
|
|
"status": 200,
|
|
"url": "https://example.test/blog/lwia-grzywa",
|
|
"locale": "pl",
|
|
"staging": false,
|
|
"seo": {
|
|
"title": "Lwia grzywa | Example",
|
|
"description": "Lwia grzywa | Example opis",
|
|
"canonical": "https://example.test/blog/lwia-grzywa",
|
|
"robots": "index, follow",
|
|
"x_robots_tag": "",
|
|
"og": {
|
|
"title": "Lwia grzywa | Example",
|
|
"description": "Lwia grzywa | Example opis",
|
|
"image": "https://example.test/img/og.png",
|
|
"url": "https://example.test/blog/lwia-grzywa",
|
|
"locale": "pl_PL",
|
|
"locale_alternates": [
|
|
"en_US"
|
|
]
|
|
},
|
|
"twitter": {
|
|
"card": "summary_large_image",
|
|
"site": "@example"
|
|
},
|
|
"verification": []
|
|
},
|
|
"html_lang": "pl",
|
|
"alternates": [
|
|
{
|
|
"hreflang": "pl",
|
|
"url": "https://example.test/blog/lwia-grzywa"
|
|
},
|
|
{
|
|
"hreflang": "en",
|
|
"url": "https://example.test/en/blog/lions-mane"
|
|
},
|
|
{
|
|
"hreflang": "x-default",
|
|
"url": "https://example.test/blog/lwia-grzywa"
|
|
}
|
|
],
|
|
"jsonld": {
|
|
"@context": "https://schema.org",
|
|
"@graph": [
|
|
{
|
|
"@type": "WebPage",
|
|
"@id": "https://example.test/blog/lwia-grzywa#webpage",
|
|
"url": "https://example.test/blog/lwia-grzywa",
|
|
"name": "Lwia grzywa",
|
|
"isPartOf": {
|
|
"@id": "https://example.test/#website"
|
|
}
|
|
},
|
|
{
|
|
"@type": "BlogPosting",
|
|
"@id": "https://example.test/blog/lwia-grzywa#article",
|
|
"headline": "Lwia grzywa </script><script>alert(1)</script>",
|
|
"mainEntityOfPage": {
|
|
"@id": "https://example.test/blog/lwia-grzywa#webpage"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"breadcrumbs": [
|
|
{
|
|
"name": "Start",
|
|
"url": "https://example.test/",
|
|
"path": "/"
|
|
},
|
|
{
|
|
"name": "Blog",
|
|
"url": "https://example.test/blog",
|
|
"path": "/blog"
|
|
},
|
|
{
|
|
"name": "Lwia grzywa",
|
|
"url": "https://example.test/blog/lwia-grzywa",
|
|
"path": "/blog/lwia-grzywa"
|
|
}
|
|
]
|
|
},
|
|
"/stary": {
|
|
"action": "redirect",
|
|
"status": 301,
|
|
"location": "https://example.test/nowy",
|
|
"url": "https://example.test/stary",
|
|
"locale": "",
|
|
"staging": false,
|
|
"seo": null
|
|
},
|
|
"/stary-zewnetrzny": {
|
|
"action": "redirect",
|
|
"status": 302,
|
|
"location": "https://partner.test/oferta?a=1",
|
|
"url": "https://example.test/stary-zewnetrzny",
|
|
"locale": "",
|
|
"staging": false,
|
|
"seo": null
|
|
},
|
|
"/usuniety": {
|
|
"action": "gone",
|
|
"status": 410,
|
|
"url": "https://example.test/usuniety",
|
|
"locale": "",
|
|
"staging": false,
|
|
"seo": null
|
|
},
|
|
"/usuniety-staging": {
|
|
"action": "gone",
|
|
"status": 410,
|
|
"url": "https://example.test/usuniety-staging",
|
|
"locale": "",
|
|
"staging": true,
|
|
"seo": null
|
|
},
|
|
"/plain?page=abc": {
|
|
"action": "not_found",
|
|
"status": 404,
|
|
"url": "https://example.test/plain?page=abc",
|
|
"locale": "pl",
|
|
"staging": false,
|
|
"seo": null,
|
|
"pagination": {
|
|
"form": "query",
|
|
"param": "page",
|
|
"segment": "",
|
|
"page": 0,
|
|
"invalid": true
|
|
}
|
|
},
|
|
"/blog/ukryty": {
|
|
"action": "ok",
|
|
"status": 200,
|
|
"url": "https://example.test/blog/ukryty",
|
|
"locale": "pl",
|
|
"staging": false,
|
|
"seo": {
|
|
"title": "Ukryty | Example",
|
|
"description": "Lwia grzywa | Example opis",
|
|
"canonical": "https://example.test/blog/ukryty",
|
|
"robots": "noindex, nofollow",
|
|
"x_robots_tag": "noindex, nofollow",
|
|
"og": {
|
|
"title": "Lwia grzywa | Example",
|
|
"description": "Lwia grzywa | Example opis",
|
|
"image": "https://example.test/img/og.png",
|
|
"url": "https://example.test/blog/ukryty",
|
|
"locale": "pl_PL",
|
|
"locale_alternates": [
|
|
"en_US"
|
|
]
|
|
},
|
|
"twitter": {
|
|
"card": "summary_large_image",
|
|
"site": "@example"
|
|
},
|
|
"verification": []
|
|
},
|
|
"html_lang": "pl",
|
|
"alternates": [],
|
|
"jsonld": null,
|
|
"breadcrumbs": [
|
|
{
|
|
"name": "Start",
|
|
"url": "https://example.test/",
|
|
"path": "/"
|
|
},
|
|
{
|
|
"name": "Blog",
|
|
"url": "https://example.test/blog",
|
|
"path": "/blog"
|
|
},
|
|
{
|
|
"name": "Lwia grzywa",
|
|
"url": "https://example.test/blog/lwia-grzywa",
|
|
"path": "/blog/lwia-grzywa"
|
|
}
|
|
]
|
|
}
|
|
}
|