What happens when a case-insensitive client contacts and webserver?
I've just got to know that some filesystems, such as FAT, store filenames as upper-case regardless of the case used to create them. So it's not possible to have Bishop.png and bishop.png in the same folder, is it?
What happens if I have a Linux server with those two files in one folder and I create a webpage like this:
<html>
<body>
<img src="Bishop.png" />
<img src="bishop.png" />
</body>
</ht开发者_StackOverflow社区ml>
Now this page get requested by a Windows 98 client (I think they had only FAT). Will Bishop.png be displayed twice? Will bishop.png be displayed twice? Or will both images be displayed although Windows 98 couldn't distinguish these files if they were stored locally?
(I don't have any possibility to check this for myself as I only have Linux)
The filesystem used by the client should not matter. It will just send a request to the server using the exact capitalization it finds in the HTML page, since the path part of URLs is case-sensitive by definition. If later it wants to cache the image locally, it has greater problems than letter case, such as not confusing bishop.png's from two different sites with each other. Solving those problems will in general entail a solution to letter case too, even if the local filesystem cannot do it by itself.
精彩评论