unity player bad file length

I have uploaded a unity web file, into my test server, and sometimes in safari it won't open and instead it show the error "bad file length", i've done some search and i found people saying that clear the browser cashes resolve the problem, but for me it's not true, i clear the caches and the error steels there. after done that I opened it on firefox, and guess what it works. the only solution that I found to resolve the problem in safari is to re-upload the unity build again to the server. although after soon or latter the error comes back. any idea how can i solve this?

This sounds like a (pretty bizzare) problem with your server, as I don't think there's anything you could actually do inside Unity itself to cause this. Have you tried passing the URL around to other people to try, to see whether they see the same problem?

Have you tried examining the filesize (via an ftp client perhaps), after the problem has started occurring, to see whether it has in fact changed size?

Could you post the URL to the file which is showing the problem for you, so we can see whether the same happens for us?

first i thought maybe my parent blocked it so i used a proxy now i know alot of people use it to hack but that was not my case.u see im 17 with strict parents.well any ways i download a program called ultrasurf its a web proxy and it acually worked fine after words come to find out my parents dident bloack the site so hopefully this helps!

Try to play it on google chrome, if it doesn’t work then clear the browser cache. Me too i got this problem with a unity game, i cleared my browser’s cache and it works now