为什么 Github 项目文档页面 url 区分大小写?有哪些负面影响? [英] Why are Github project document page urls case sensitive? What are the negative effects?

查看:20
本文介绍了为什么 Github 项目文档页面 url 区分大小写?有哪些负面影响?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为我的 github 项目 repo gh-pages 分支上传了一个示例 index.html 页面.但是,用于访问文档的 url 似乎区分大小写.正确的网址如下,

I Just uploaded a sample index.html page for my github project repo gh-pages branch. However it seems the url used to access the documentation is case sensitive. The correct url is as follows,

http://harindaka.github.com/ASPTokenInput/

但是,如果我在小写的 github 中使用相同的 url,则会显示未找到页面的消息.即

However if I use the same url in lowercase github displays a page not found message. i.e.

http://harindaka.github.com/asptokeninput/

  1. 为什么 URL 区分大小写?
  2. 这是否会对搜索引擎可见性和浏览器缓存等产生负面影响?
  3. 区分大小写的 url 方法有哪些缺点/优点?
  4. 这是否意味着某些其他项目可以在 github 上的不同情况下具有相同的名称和 url?(颤抖:-O)

提前致谢.

推荐答案

对于你的第 4 个问题,我只是尝试在 Github 上创建一个新的存储库,该存储库与现有(我自己的帐户)的存储库不同,并且我收到一条名称已被占用"的消息.所以,不,您不能有两个仅因大小写不同而不同的存储库.

For your 4th question, I just tried to create a new repository on Github which would only differ by case to an existing one (of my own account), and I got a "Name is already taken" message. So, no, you can't have two repositories differing only by case.

(不过,如果您的文件系统允许,存储库中的目录和文件可能会因大小写不同而有所不同.)

(It is possible to have directories and files inside the repository differing only by case, if your file system allows this, though.)

这篇关于为什么 Github 项目文档页面 url 区分大小写?有哪些负面影响?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆