Prerender.io's cached html header getting replaced by static header
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- express, javascript
- Ambito
- backend
Direzione di ricerca
Start by comparing the Express Prerender.io middleware behavior for the Heroku URL and the Namecheap domain. Reproduce the differing meta tags with Facebook Debugger, metatags.io, and curl using the Googlebot user agent, then inspect the middleware and domain configuration to identify where the static index.html header is returned. Done means explaining the domain-specific difference and documenting a verified fix.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I have a Heroku app that I added a namecheap domain (https://www.platonic.chat/) to. I recently added SEO to the app using Prerender.io, so particular pages on the app have dynamic link preview. However, the namecheap domain does not display the desired dynamic link preview. I can see on my Prerender.io dashboard that it cached the pages correctly, but somehow the <meta> tags of the cached htmls got replaced by the <meta> tags of the static index.html when the cached htmls get fetched.
Another observation is that the Heroku domain that doesn't use namecheap (https://platonic-prod.herokuapp.com/) doesn’t have this problem. In the Heroku domain (https://platonic-prod.herokuapp.com/c/welcome-to-platonic), the desired title meta tag is:
<meta property=“og:title” content=“Welcome to Platonic”>
.
.
.
But in the namecheap domain (https://www.platonic.chat/c/welcome-to-platonic), the title meta tag is:
<meta property=“og:title” content=“Platonic”>
.
.
.
The body of the Prerender.io fetched html in both cases are the same, so it seems to me that something is replacing the header of cached html. The link preview gives the incorrect result when I use Facebook Debugger and metatags.io, but it gives the correct result when I use Googlebot through command line curl -A Googlebot https://www.example.com/ and displays properly on Discord. So why does adding a namecheap domain to a Heroku app modifies the cached html when it gets fetched?
I am using ExpressJS middleware for Prerender.io, caching Angular pages.
- Lingua principale
- JavaScript
- Stelle
- 921
- Fork
- 185
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di prerender/prerender-node
-
Release new version? Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
prerender/prerender-node#274 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
prerender/prerender-node#272 ·
-
Fastify support? Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
prerender/prerender-node#224 · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
prerender/prerender-node#223 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
prerender/prerender-node#220 · 2 commenti · 2 reazioni ·
Tutte le issue di prerender/prerender-node
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Daemon passes --experimental-wasm-jspi unconditionally on Node >= 24; Node 26 rejects the flag Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Automattic/studio#4908 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
sugarlabs/musicblocks#8847 ·