Prerender.io's cached html header getting replaced by static header
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 20/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- express, javascript
- Domaine
- backend
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- JavaScript
- Étoiles
- 921
- Forks
- 185
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de prerender/prerender-node
-
Release new version? Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
prerender/prerender-node#274 · 1 commentaire ·
-
Instagram browser uses prerender Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 48/100
prerender/prerender-node#272 ·
-
Fastify support? Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
prerender/prerender-node#224 · 1 réaction ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 45/100
prerender/prerender-node#223 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
prerender/prerender-node#220 · 2 commentaires · 2 réactions ·
Toutes les issues de prerender/prerender-node
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
area-deployment area-integrations triage:bot-seen
Difficulté 2/5 Une demi-journée Accessibilité débutants 86/100
-
Issue-Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
sugarlabs/musicblocks#8924 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled Ouvertecustomer-eng status: needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100