在Apache 下如果load module Spelling 的話
對應的目錄如果有大小寫區分,則會導致服務器下發多一次301
例如目錄如果是js 則正常訪問
而如果目錄是Js的話:
Js目錄下的所有文件全部被301 重定向一次;
對於服務器造成了太多的請求
所以,建議千萬不要在apache 中打開 忽視大小寫的
Checkspelling on 開關
補充:
Apache 官方提到了這個問題 :http://httpd.apache.org/docs/trunk/mod/mod_speling.html
If, after scanning the directory,
only one document is found that "almost" matches the request, then it is returned in the form of a redirection response (301 - Moved Permanently
).
也就是說這個問題同文件大小寫無關,同文件夾的大小寫有關