跳到正文
Skillpedia
SEO75k · #2861

freshness

它能做什么

这项技能检查文章是否向读者和搜索引擎显示了最后更新时间。适用于持续更新内容的网站所有者和作者。

适用场景

  • ✓当你更新了文章,并希望搜索引擎注意到这一变化的时候。
  • ✓当你的博客文章没有可见的最后更新日期的时候。
  • ✓当你的内容涉及经常变化的新闻、教程或评测的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/freshness/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/freshness/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-Modified HTTP response header and include dateModified in Article JSON-LD on all content pages
  • Update dateModified only 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

  1. Configure your web server to send Last-Modified headers based on the file modification time:
    • Nginx: add_header Last-Modified $date_gmt;
    • Apache: ensure mod_headers is enabled; static files serve Last-Modified automatically.
  2. Update Article JSON-LD to include dateModified:
    { "@type": "Article", "dateModified": "2024-11-20T14:30:00Z" }
    
  3. Add a visible "Last updated" date to the article template.
  4. Hook your CMS to update dateModified only when content is substantively changed (not on metadata-only saves).
  5. If using a static site generator (Next.js, Astro), pass the frontmatter updatedAt field 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.

Rule page: https://frontendchecklist.io/rules/seo/freshness

常见问题

每次小改动都应更新日期吗?

不需要。这项技能指出,只有内容发生实质性变化时才更新日期。

什么是 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2861
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能