开发者

Chrome (or chrome frame) sends two or more requests instead of one?

开发者 https://www.devze.com 2023-01-17 13:52 出处:网络
I use HT开发者_JAVA技巧ML5 video tag, back-end is on Java. It works fine in Firefox but in Chrome it sends more than one requests to servlet and finally there is Exception in servlet and it doesn\'t w

I use HT开发者_JAVA技巧ML5 video tag, back-end is on Java. It works fine in Firefox but in Chrome it sends more than one requests to servlet and finally there is Exception in servlet and it doesn't work.

I've read that firstly to make element in DOM and then assign src to it, but still it sends more than one requests.

Do you have any solutions for me?


I don't really know why Chrome sends more than one request to your servlet. But honestly, I think you should just fix the exception cause in your servlet because basically you have no control over the requests that anyone (Chrome or a possible attacker) sends to your service. When communicating with the "outside" any component should expect the unexpected.

If you provide the stack trace and/or some additional information, possibly in a new question, you might get some help with this issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消