问题原文
原帖链接 · EmL · CC BY-SA 4.0
My server hosts 2 different websites which lately have been slow to load on browsers.
After looking at potential causes and solutions online, I came across this thread.
One of the advised solutions was to disable IPv6 which I'd like to try, however, As I have no proficiency in this area, I first want to make sure I understand exactly what this will do (what are the consequences of doing so), and if OK then know what is the safe way to do so without breaking my server/websites.
已采纳解答
原帖链接 · John Mahowald · CC BY-SA 4.0
No, do not disable IPv6. It breaks things, turns users without v4 away, and makes more work for your future project to use IPv6.
A host with only IPv4 addresses and routes will serve web sites just fine without doing anything. v4 and dual stack hosts can still get to it.
You cite forum posts circa 2008. And even then disabling IPv6 was an uninformed shot in the dark, I see no v6 in use in their terminal output. Further, in the time since, IPv6 has gone from early adopters to mature and widely deployed.
Use web site performance analytics to measure what is slow. Tools exist to simulate real user load on a slow connection, or to instrument actual user performance in their browser. Use F12 browser developer tools, for example. Prove exactly which requests. Then trace requests through your web server stack and see what is involved in serving it.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
