Request open Web page, browser cache first Experience

Source: Internet
Author: User
Tags browser cache

Open Python's own web server

Browser input http://localhost:8080

Open a webpage index.html

Looking at the server background interface, you can see a GET request for HTTP 3 times. (Open a page, there are actually 3 requests OH)

get/http1.1 200, respectively.

Get img/200

Get css/200

Close the browser, shut down the server, and open it separately.

Browser input http://localhost:8080

Discover background interface with only one HTTP request

get/http1.1 200. Picture does not need server processing again OH. All said, caching actually helps to improve the performance of the service.

Request open Web page, browser cache first Experience

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.