freshness
它能做什么
这项技能检查文章是否向读者和搜索引擎显示了最后更新时间。适用于持续更新内容的网站所有者和作者。
适用场景
- ✓当你更新了文章,并希望搜索引擎注意到这一变化的时候。
- ✓当你的博客文章没有可见的最后更新日期的时候。
- ✓当你的内容涉及经常变化的新闻、教程或评测的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/freshness/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为文章添加更新日期,让搜索引擎看到它们是最新的。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查 Last-Modified 标头和文章数据中的 dateModified 字段。它会建议正确设置两者,并为读者添加可见的最后更新日期。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Show content freshness signals
Google's Query Deserves Freshness (QDF) algorithm boosts recent or recently updated content for time-sensitive queries. Missing or stale freshness signals mean your updated content competes without the freshness advantage it deserves.
Quick Reference
- Set the
Last-ModifiedHTTP response header and includedateModifiedin Article JSON-LD on all content pages - Update
dateModifiedonly when content substantively changes — trivial edits should not alter the date - For time-sensitive topics (news, tutorials, product reviews), freshness directly influences Google's ranking of your content
Check
For each article or blog page: (1) Check the HTTP response Last-Modified header — is it set and recent? (2) Check the JSON-LD for a dateModified property in ISO 8601 format. (3) Is a visible 'Last updated' date shown to users? (4) Is the dateModified in JSON-LD consistent with the visible date and the Last-Modified header?
Fix
- Configure your web server to send
Last-Modifiedheaders based on the file modification time:- Nginx:
add_header Last-Modified $date_gmt; - Apache: ensure
mod_headersis enabled; static files serve Last-Modified automatically.
- Nginx:
- Update Article JSON-LD to include
dateModified:{ "@type": "Article", "dateModified": "2024-11-20T14:30:00Z" } - Add a visible "Last updated" date to the article template.
- Hook your CMS to update
dateModifiedonly when content is substantively changed (not on metadata-only saves). - If using a static site generator (Next.js, Astro), pass the frontmatter
updatedAtfield through to the JSON-LD and<time>elements.
Explain
Google's freshness algorithm (QDF — Query Deserves Freshness) actively boosts recently published or updated content for searches where recency matters. If your dateModified is stale or absent, Google may not credit your content with the freshness it deserves, ranking older competitors above you even after you have updated the article.
Code Review
Check that the Last-Modified response header is present on article pages. Verify Article JSON-LD includes dateModified in ISO 8601 format. Confirm that the build or deployment system updates dateModified only for content files that actually changed — not a blanket timestamp update on all pages during deploy.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
常见问题
每次小改动都应更新日期吗?
不需要。这项技能指出,只有内容发生实质性变化时才更新日期。
什么是 dateModified?
它是页面 Article 结构化数据中的一个字段,记录内容最后一次被修改的时间。
哪些页面受益最大?
这项技能指出,新闻、教程和产品评测等具有时效性的主题受益最大。
详情
作者的原始描述
Use when auditing content pages for freshness signals, setting up HTTP Last-Modified headers in a web server config, or ensuring Article JSON-LD dateModified is updated when CMS content changes.
热度
- GitHub 星标
- 75k
- 排名
- #2861
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。