I have something I cannot figure out.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.