Tag:consult

  • Browser caching mechanism front end performance optimization

    Time:2021-5-2

    1、 Overview There are three types of caching Browser cache Server cache HTML5 cache This time we will discuss the browser cache. Caching is a mechanism of the browser, which can copy a copy of the requested web resources (HTML, CSS, JS, pictures, etc.) and store it in the browser, and choose whether to use […]

  • Front end cache

    Time:2021-3-5

    Front end caching has always been a hot topic in front-end, and it is also a high-frequency test site for interview. Mainly related to the front-end performance optimization knowledge. Let’s look at the outline first I’ve written about HTTP caching beforeRead HTTP cache (super detailed), which is more detailed. If you are interested, you can […]

  • Do you know these knowledge points of browser cache?

    Time:2021-3-4

    1、 Basic knowledge of browser cache It is divided into strong cache and negotiation cache 1. When the browser loads a resource, it first determines whether it hits the strong cache according to some HTTP headers of the resource. If the strong cache hits, the browser reads the resource directly from its own cache and […]

  • Practice brings you to know — HTTP caching

    Time:2021-3-2

    In order to understand the mechanism of HTTP caching, this article builds nginx and sets nginx configurationIn fact, there are a lot of articles on the Internet, but most of them are written. Caching is more theoretical, which leads me to be confused at the beginning So this time I use the screenshots and step […]

  • Case interpretation: in depth understanding of browser caching mechanism

    Time:2021-2-20

    Abstract:Caching can reduce IO consumption and improve access speed. Browser caching is a simple and effective front-end performance optimization method. preface Browser caching is an important part of front-end performance optimization, and it is self-evident for the importance of front-end efficiency improvement. Previously, I knew little about browser caching. This time, I took advantage of […]

  • Strong cache and negotiation cache of browser

    Time:2020-11-8

    1、 Preface Record your experience from other articles and see if you can use it later 2、 Is caching a front-end or back-end setting? The back-end settings are all set in the response header and response header 3、 Type 1. Strong cache set upcahe-controlLike this Several meanings of cache control values: private:Only browsers can cache […]

  • Case study: in depth understanding of browser caching mechanism

    Time:2020-10-10

    Abstract:Caching can reduce network IO consumption and improve access speed. Browser caching is a simple and effective front-end performance optimization method. preface Browser caching is an important part of front-end performance optimization, and it is of great importance to improve front-end efficiency. In the past, I knew little about browser caching. This time, I took […]

  • Browser caching best practices

    Time:2020-10-4

    Best practices First of all, let’s talk about the conclusion index.html Do not cache, get the latest version every time you request All other resource files (including JS, CSS, images, etc.) built with webpack should be strongly cached (at the end of one month, and can be set for one year) reason The strong cache […]

  • Use Wireshark to analyze the packet

    Time:2020-9-21

    Note: before reading, make sure you know the basic operation of tcpdump and Wireshark~ Syn package does not return Capture location: client Phenomenon: the client sends a syn packet, and then retransmit it all the time. The time interval increases by 1 s, 2 s, 4 S, and finally disconnects. Filter command:tcp.flags.syn==1 and tcp.analysis.retransmission Reason: […]

  • Front end interview summary

    Time:2020-9-11

    1、 The difference between HTTP and htpps What is HTTP HTTP is hypertext transfer protocol; HTTP is based on request and response, stateless, application layer protocol, data transmission based on TCP / IP protocol; The original intention of HTTP is to provide a method to publish and accept HTML pages; What is HTTPS HTTP is […]

  • Reading notes in Chapter 3 of illustrated HTTP — operation mechanism of HTTP request and response

    Time:2020-9-2

    HTTP message Message structure HTTP message can be roughly divided into two parts: message header and message body. The two are divided by the initial blank line (Cr + LF). In general, it is not necessary to have a message body. Coding improves transmission efficiency Coding format In the transmission process, the transmission rate is […]

  • Easy to learn HTTP caching (strong caching, negotiation caching)

    Time:2020-8-22

    If readers are familiar with the words “strong cache” and “negotiated cache”, but do not know what they are, or some readers do not know HTTP caching, then this article will explain them one by one. Welcome to star and subscribe to my blog. HTTP caching process Before introducing what strong caching and negotiation caching […]