显示网页的上次修改日期/时间

发布于 2024-12-25 23:57:44 字数 211 浏览 3 评论 0原文

是否可以通过在 www.google.com/search?q=... 之后向 url 参数添加一些内容,让 google 搜索返回每个网页的最后修改日期/时间?或者,有没有一种简单的方法来获取此类信息?

附加问题:为什么 Google 不在搜索结果中包含此类信息?这是非常重要的信息,只要谷歌抓取每个页面,似乎不需要额外的工作。

Is it possible to let google search return the last modified date/time for each webpage by adding something to the url parameter after www.google.com/search?q=...? Or, is there a simple way to get such information?

Additional question: Why does google not include such information in the search results? It is very essential information, and does not seem to require additional job provided that google crawls thourgh each page.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝天 2025-01-01 23:57:44

或者,有没有一种简单的方法来获取此类信息?

尝试 netcat (或 telnet,任何其他简单的网络工具)。

命令:

$ nc stackoverflow.com 80
HEAD / HTTP/1.1
Host: stackoverflow.com

响应:

HTTP/1.1 200 OK
[...]
Last-Modified: Sat, 07 Jan 2012 14:01:34 GMT

Or, is there a simple way to get such information?

Try netcat (or telnet, any other simple networking tool).

Command:

$ nc stackoverflow.com 80
HEAD / HTTP/1.1
Host: stackoverflow.com

Response:

HTTP/1.1 200 OK
[...]
Last-Modified: Sat, 07 Jan 2012 14:01:34 GMT
不交电费瞎发啥光 2025-01-01 23:57:44

据我所知,这通常是不可能的,除非你在 html 代码中嵌入一个提示,当谷歌读取你的网站时生成它。

在这种情况下,您可以在谷歌缓存中的缓存文件的源代码中找到日期。

As far I know that is gerneral not possible exept you embed in your html code a hint when it was generated while google read your site.

In that case you can find the date in the sourcecode of the cached file in the google cache.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文