'Django - strange browser behavior cause broken pipe
I noticed a strange behavior for a long time that cause my server do extra work. For Safari browser. Whenever you touch the address bar and start to edit the existing URL, the browser sends the same get request to the server and close the connection before the server return the response. When you finish editing the address and hit enter it will send the new request.
This behavior can happen multiple times while you edit your URL in the address bar.
This cause the server to fully process the response and when it return the result it through Broken pipe.
This happen on both cases for DEBUG = True/False. So I can see it on local debug server and I can see a request happening on my NGINX production server.
Is there a way to identify this request so to not serve results and save the server processing power?
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
