Reference 404 error for a request for the jquery.min.map file

徘徊边缘 提交于 2021-02-10 06:43:45

问题


Out of now where I'm getting this 404 error when browser is requesting the jquery.min.map.

Funny this is that I've never added this file to my solution.

Can anyone explain to me how to get ride of this error?

I have no idea where this file is being referenced since I did not add a reference to this file.

Request URL:http://localhost:22773/Scripts/jquery.min.map
Request Method:GET
Status Code:404 Not Found
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Host:localhost:22773
Referer:http://localhost:22773/Manager/ControlPanel.aspx
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36
Response Headersview source
Cache-Control:private
Content-Length:4992
Content-Type:text/html; charset=utf-8
Date:Tue, 10 Sep 2013 17:37:40 GMT
Server:Microsoft-IIS/8.0
X-Powered-By:ASP.NET
X-SourceFiles:=?UTF-8?B?YzpcdXNlcnNcYWRtaW5pc3RyYXRvclxkb2N1bWVudHNcdmlzdWFsIHN0dWRpbyAyMDEyXFByb2plY3RzXEFsdW1DbG91ZFxBbHVtQ2xvdWRcU2NyaXB0c1xqcXVlcnkubWluLm1hcA==?=

回答1:


Source maps are like favicons, a thing that will be loaded by browsers in some circumstances.

Typically, javascript are minified on production servers and debugging javascript on them is difficult.

Source maps are the original versions of minified javascript. It's up to the developers to include them or not on their websites.

In Chrome, you have to activate this functionality for the browser to attempt to download the original non-minified version of a minified script. It is then easier to debug client-side.

Basically, you can't get rid of this error besides providing source maps.

Anyways, see: http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/



来源:https://stackoverflow.com/questions/58202269/how-to-remove-css-and-js-source-mapping-instructions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!