Prerender.io's cached html header getting replaced by static header
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- express, javascript
- Lĩnh vực
- backend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 921
- Fork
- 185
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của prerender/prerender-node
-
Release new version? Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
prerender/prerender-node#274 · 1 bình luận ·
-
Instagram browser uses prerender Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
prerender/prerender-node#272 ·
-
Fastify support? Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
prerender/prerender-node#224 · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
prerender/prerender-node#223 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
prerender/prerender-node#220 · 2 bình luận · 2 reaction ·
Tất cả issue của prerender/prerender-node
Issue tương tự
-
bug customer-eng Durable Agents Inngest status: needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
optimization optimization:agents-md-curator
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
githubnext/gh-aw-cao#13475 ·
-
[BUG]: "Clear All" in Settings doesn't clear the saved analysis, old data comes back after reload Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
AOSSIE-Org/OrgExplorer#253 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
oxc-project/oxc#26944 ·
-
ai-observability bug team/ai-observability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100