Prerender.io's cached html header getting replaced by static header
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 20/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- express, javascript
- 领域
- backend
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- JavaScript
- 星标
- 921
- 派生
- 185
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
prerender/prerender-node 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
prerender/prerender-node#274 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 48/100
prerender/prerender-node#272 ·
-
Fastify support? 未关闭
难度 5/5 一周以上 新手友好度 15/100
prerender/prerender-node#224 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 45/100
prerender/prerender-node#223 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
prerender/prerender-node#220 · 2 条评论 · 2 个 reaction ·
查看 prerender/prerender-node 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 75/100
docToolchain/docToolchain#1705 ·
-
Timezone select lists one option per character; duplicate "Failed" reason; shared tracker popover id 未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
nightscout/nocturne#1414 ·
-
bug v2
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/inspector#2458 · 1 条评论 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
难度 2/5 1-3 小时 新手友好度 70/100
carbon-design-system/ibm-products#9907 ·