javascript - (NS_ERROR_DOCUMENT_NOT_CACHED) through firefox same code works for safari - Stack Overflow

I am getting (NS_ERROR_DOCUMENT_NOT_CACHED) errorwhen I try to access the Javascript code through fir

I am getting (NS_ERROR_DOCUMENT_NOT_CACHED) error when I try to access the Javascript code through firefox.I get this error in the contents tab of HTTPFOX.

I googled and set the parameters of browser in config file as specified in this site but it still doesn't work.

Can somebody suggest whats going wrong since the same code works fine for safari browser..

I am getting (NS_ERROR_DOCUMENT_NOT_CACHED) error when I try to access the Javascript code through firefox.I get this error in the contents tab of HTTPFOX.

I googled and set the parameters of browser in config file as specified in this site but it still doesn't work.

http://code.google./p/httpfox/issues/detail?id=20

Can somebody suggest whats going wrong since the same code works fine for safari browser..

Share Improve this question edited Nov 10, 2010 at 18:59 Judy asked Oct 28, 2010 at 2:49 JudyJudy 1,5439 gold badges27 silver badges41 bronze badges 3
  • 1 you don't use httpfox in safari, so it's paring apples to oranges. Is the problem with Firefox or with httpfox? – Nickolay Commented Oct 31, 2010 at 19:32
  • 1 Did you ever find the solution to this? Fiddler is showing a 200 response, but it has a big red circle with a cross next to it. – MikeKusold Commented Sep 8, 2011 at 19:01
  • @MikeKusold I think I may have found a fix. See my answer =] – Relequestual Commented Feb 6, 2012 at 11:24
Add a ment  | 

3 Answers 3

Reset to default 1

If anyone is interested in a solution to this, I believe it's to do with the plugin noscript. Disabling it fixed this, but I have yet to work out what part of noscript was causing the issue. Will update if I find out.

Edit:My issues was with a twitter auth callback. In the Advanced settings of noscript under ABE, in the SYSTEM ruleset, on the line "Accept from LOCAL" I added "*.twitter.". This allowed callback requests from *twitter. to return to a local address.

On my macbook I had to uninstall firefox pletely to correctly get the content of an ajax response with httpfox. This also implies to remove the firefox profile bij removing this Firefox folder (I could only find it via the terminal and not via Finder):

/Users/<YOURUSER>/Library/Application Support/Firefox

Then install firefox again and install the httpfox add-on. I tried many cache settings also by entering about:config in the firefox URL however without succes. Be aware that removing the profile settings like I describe will also remove all your personal firefox customization. It concerned firefox 18.0.2 and httpfox 0.8.11.

We used to get the same error when our JavaScript made an XMLHTTPRequest to the server. On the server side, we had java, and the java response, the content type was not explicitly set to "text/html". When that was done

resp.setContentType("text/html");

the error went away.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744698166a4588620.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信