My site method getting called twice in firefox browser but not on other browsers
My site method getting called twice in firefox browser but not on other browsers. When i check the console the it calls twice, one with request header as: Host rapidmicrobiology.dev User-Agent Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/56.0 Accept text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8 Accept-Language en-US,en;q=0.5 Accept-Encoding gzip, deflate Referer http://rapidmicrobiology.dev/ Cookie XSRF-TOKEN=eyJpdiI6IjJzVlhrQXJ…4YjY2MjcwMjg0MjhkNjUifQ%3D%3D Connection keep-alive Upgrade-Insecure-Requests 1
While the other which is 200 as:
Host rapidmicrobiology.dev User-Agent Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/56.0 Accept text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8 Accept-Language en-US,en;q=0.5 Accept-Encoding gzip, deflate Referer http://rapidmicrobiology.dev/ Cookie XSRF-TOKEN=eyJpdiI6IjJzVlhrQXJ…4YjY2MjcwMjg0MjhkNjUifQ%3D%3D Connection keep-alive Upgrade-Insecure-Requests 1
Alle antwoorden (6)
hello, hard to explain especially if it's your project behind a local hostname. Check your code, especially javascript, your server settings etc. If your project is only about html/css/javscript (static website) then try to push your sources on a public server if possible, we will try to investigate deeper. In addition, can you reproduce with firefox in safe mode?
But the problem is only with firefox, and not other browsers. My project is in php. I tried in safe mode as well., but the probem exists.
Bewerkt door garimarameshsingh op
Ok, new browsers built to W3C Standards, implementing that is not easy. So with that said you when making a web page also has to adhere to see thing in your code. So the slightest error in code can break a browser. In this case Firefox. So I am thinking. http://www.rapidmicrobiology.com/ Seems rather a small error here in your code on front page HTML but not going to run each page to see if more. Please check your code 1 more time running your pages through here for HTML https://validator.w3.org/ as per error https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.rapidmicrobiology.com%2F and CSS through here https://jigsaw.w3.org/css-validator/ errors https://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.rapidmicrobiology.com%2F&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en
So, yes it may still be the browser if you were having other issues on other sites, or something else was going. So suggest that it is the code and Firefox now can not read the incorrect/errors.
Now I may be completely wrong on this altogether.
Please let us know if this solved your issue or if need further assistance.
Bewerkt door Shadow110 op
the site http://www.rapidmicrobiology.com/ is an old one, I have created same website in php-laravel locally. It is not yet public, how can I check errors/bugs on local pages?
Found no error here https://validator.w3.org/nu/#textarea only warnings.
I do not think it comes from HTML but from javascript or request. Do you have a form or a PHP which could send a request automatically? Again, the best way to help you is to get the website and reproduce your issue.