Case sensitivity for linux and windows to import javascript to html
I follow:
test.html:
<html>
<head>
<title>TEST</title>
</head>
<body>
<script type="text/javascript" src="Test.js"></script>
</body>
</html>
<script>
alert(Test);
</script>
test.js:
var Test="test";
Question: why does it work on Windows and not work on Linux (in other words, why linux is random to import but not window)?
How can I disable case sensitivity for javascript imports in Linux?
source to share
In Linux test.js
, there test.js
are two separate files due to case sensitivity on most filesystems.
You can change this at the filesystem level using ciopfs , a case-insensitive target filesystem that allows a directory to be mounted as a case-insensitive filesystem .
Or you can change this at the web server level. FE if the Linux server is running Apache, you can add a file .htaccess
that uses mod_spelling with these parameters:
CheckSpelling On
CheckCaseOnly On
But character, I think you should fix the shell.
source to share