When creating web apps or even websites, errors happens, and we need to debug and solve them.
Usually, for a standard Apache server, the server errors are logged and we have access to this log. And we need this file empty (no errors at all), don't we?
One of these errors can be the 404, the not found one. It informs us that the server tries to access a file that doesn't exist. And is fine, if it's a file, we can upload it to the server and the problem is solved. Also, we can instruct the server to load another location for the missing file or resource (rewrite procedures).
The 404 not found for some "strange" .map files (.css.map, .js.map)Why the server can't find them (and generate the 404 error), what are these used for and when the error appear?
The server can't find them because these are not on the server :)
1. Create an empty file on the document root, named 404.map
2. Add these lines to the .htaccess file:
That way, every time the Chrome Dev Tools tries to access the corresponding map file, the empty 404.map file will be provided, no more errors, no glitches in DevTools or server/app functionality.