/favicon.ico should be detected before added to the url list
还没有人认领这个 Issue。
评估
调研方向
从 URLDetector.php 开始,跟踪 /favicon.ico 是如何添加到 URL 列表中的。在包含 favicon.ico 之前,检查 root 资源是否存在,并考虑对 robots.txt 和 sitemap.xml 采用相同的请求行为。完成标准是:不存在的 root 资源不会被添加到爬取 URL 列表中,也不会被报告为 404s。
由索引模型根据 Issue 内容生成。
描述
File: URLDetector.php
The current way if always add /favicon.ico generates unessesary 404 errors.
In most WP sites favicon is now set in admin panel (over Design-Customzier or a Plugin). The favicon is placed in the media library and an html meta tag is inserted on each page that references the favicon. There is no need to rely on an favicon.ico on site root anymore.
Since favicon is not present on site root, crawling will throw an 404 message.
The presence of favicon on root level should be tested and only if present it should be added in the url list.
Same goes for robots.txt and sitemap.xml
- 主要语言
- PHP
- 星标
- 1.5k
- 派生
- 293
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
elementor/wp2static 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
-
难度 1/5 1 小时以内 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 2/5 1-3 小时 新手友好度 45/100
查看 elementor/wp2static 的全部 Issue
相似的 Issue
-
Recognise PHP_CodeSniffer (`phpcs`) as a linter可能已有人在做 @HarshRajSinghania 今天认领。 未关闭enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
MustacheCase/zanadir#507 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
jwage/phpamqplib-messenger#163 ·
-
Newsletter subscription page logs Undefined array key "nw_error" on every GET可能已有人在做 @Codencode 今天认领。 未关闭
难度 1/5 1-3 小时 新手友好度 82/100
PrestaShop/ps_emailsubscription#145 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 82/100
-
jira-created
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复