GyaanSetu WebDev

Frontend, backend and devops for the modern web.

209 articlesDeep, practical knowledge

Cloudflare 的一键式边缘开关让任何网站都能适配 AI Agent

新推出的“Browser Run → Agent Readiness”开关通过向传出的 HTML 添加一段微小的 JavaScript 有效负载,实现网站在 WebMCP 中的自动注册,并提供两套现成的工具包:内容凭证 (Content Credentials) 和站点 MCP 服务器代理 (Site MCP Server proxy)。

WebDev · 3 分钟阅读

How to Stop Training Bots While Keeping Citation Bots for ChatGPT Traffic

A generic “Disallow: /” for GPTBot only blocks the training crawler; the citation bots that surface your pages in ChatGPT’s answer pane remain active. Use explicit robots.txt rules or Cloudflare’s AI Crawl Control to allow OAI-SearchBot, ChatGPT-User, and their peers while denying GPTBot, ClaudeBot,

WebDev · 4 分钟阅读

通过五个简单步骤修复 Shopify 上重复的产品 JSON-LD

运行 Google 的 Schema Markup Validator,精准定位导致问题的模板文件或应用,移除多余的 JSON-LD 代码块,并重新审核您的应用——每一步都能帮助您恢复单一、干净的产品架构,从而提升富媒体搜索结果的可见性。

WebDev · 1 分钟阅读

清理脚本抹除了数十篇文章中的代码片段

一项例行维护任务误识别了 Liquid 的 {% raw %} 标签,将其视为未闭合的变量,从而删除了所有使用这些标签的文章中的周围代码块,迫使团队进行了紧急回滚并重新审视了迁移测试。

WebDev · 3 分钟阅读