I have something to do. I cannot figure out why the client sends an image to the client through http request. why is the transmission so slow? more than 300 kb, but it has been transferred for more than 5 seconds?
If it takes 2 seconds to open it directly on the webpage through get_files_contents in a browser, I really don't understand.
Reply to discussion (solution)
It must have been cached somewhere.
Is your php framework or CMS tested?
Firebug or other tools intercept two types of data packets. What are the differences between Last-Modified and Cache-control in the head part?
During the test, try to clear the cache and refresh it again. F5 will still compare the Last-Modified with the cache
It depends on how your code is written.
Don't understand .. What do you mean is the same speed?
You didn't clarify the problem
You didn't clarify the problem
For example, the php image written by the game client c ++ server is very slow to send to the client.
Depends on each time? Sent word ??. If it is small, it will be divided into many times ?,?? It slows down.