/favicon.ico should be detected before added to the url list

未关闭
#780 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
php
领域
backend

调研方向

从 URLDetector.php 开始,跟踪 /favicon.ico 是如何添加到 URL 列表中的。在包含 favicon.ico 之前,检查 root 资源是否存在,并考虑对 robots.txt 和 sitemap.xml 采用相同的请求行为。完成标准是:不存在的 root 资源不会被添加到爬取 URL 列表中,也不会被报告为 404s。

由索引模型根据 Issue 内容生成。

描述

enhancement

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

elementor/wp2static 的其他 Issue

查看 elementor/wp2static 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。