Tag:HTTP cache

  • ASP.NET HTTP cache usage in core

    Time:2020-9-22

    HttpResponse caching reduces the number of client or proxy pairswebThe number of requests made by the server. The response cache is also reducedwebThe amount of work required by the server to generate the response. Response caching is provided byHttpOn requestheaderControl. andASP.NET CoreIt has the corresponding realization, does not need to understand the details of the […]

  • Yii framework HTTP cache operation example

    Time:2019-12-30

    This article describes the HTTP cache operation of the Yii framework. To share with you for your reference, as follows: HTTP forbidden caching principle header(‘Expires: 0’); header(‘Last-Modified: ‘. gmdate(‘D, d M Y H:i:s’) . ‘ GMT’); header(‘Cache-Control: no-store, no-cahe, must-revalidate’); //ie dedicated header(‘Cache-Control: post-chedk=0, pre-check=0’, false); //for HTTP/1.0 header(‘Pragma: no-cache’); HttpcacheController.php First, judge the LastModified […]

  • On HTTP cache

    Time:2019-12-2

    Why use caching? Caching is an HTTP device that can automatically save copies of common documents when web requests arrive at the cache. If localCached copiesYou can extract the document directly from the local storage device without going to the server. Caching helps us: Relieve server pressure and improve website performance Speed up the loading […]

  • Strong cache and weak (negotiate) cache of HTTP

    Time:2019-11-12

    concept Browser cache is mainly divided into local cache (also known as strong cache) and weak cache (also known as negotiation cache) Strong cache The request sent by the user is directly obtained from the client cache and not sent to the server. No interaction with the server Weak cache The request sent by the […]

  • HTTP Cache-Strong Cache/Negotiation Cache/Browser Refresh

    Time:2019-10-12

    Web cache: Database cache, server-side cache (proxy server cache, CDN cache), browser cache Browser Cache: HTTP caching, indexDB, cookie, local storage, and so on HTTP cache Force cache takes precedence over negotiate cache Strong cache: Hit cache does not need to interact with server side Negotiation Cache: Interacts with the server side regardless of hit […]

  • Talk about HTTP status codes, caching mechanisms, cookies

    Time:2019-9-17

    Http status code Status code Meaning 1XX The request is being processed 2XX The request was successfully processed 3XX Requests require additional actions, such as redirection 4XX Client error prevents request from being processed 5XX Server Handling Error 2XX Status code Reason-Phrase Meaning 200 OK Requests are normally processed 204 NO CONTENT The request succeeds, […]

  • HTTP2 performance test for Web caching server: nuster vs nginx

    Time:2019-6-23

    Simple useh2loadThe cache performance of nuster and nginx under http/2 was tested, and the results showed that RPS (number of requests per second) nuster was almost three times as large as nginx. https://github.com/jiangwenyu… data size CONN nuster nginx 12(hello world) 1000 338924 110419 testing environment The server Two Linux servers: one test server 129 and […]

  • A Graph Understanding Http Caching

    Time:2019-5-30

    Referring to some browser caching information, this paper summarizes its process through a graph. The first time a browser initiates a web serverhttpAfter the request, the server returns the requested resource and adds some caching fields to the response header, such as:Cache-Control、Expires、Last-Modified、ETag、DateWait. The browser then requests the resource from the server to use it as […]

  • In-depth analysis of browser caching strategy

    Time:2019-4-30

    Preface When accessing a web page, the client downloads the required resources from the server. But some resources rarely change, such as HTML, JS, CSS, pictures, font files, etc. If these resources are downloaded from the source server every time the page is loaded, it will not only increase the time to obtain resources, but […]

  • What about HTTP caching in browsers

    Time:2019-4-20

    Caching is the only way to improve user access speed, save bandwidth and reduce server pressure. The following are all for HTTP 1.1 to illustrate that HTTP caching is for browser clients, other third-party clients do not consider. What is Browser Cache Simply put, browser caching is to store a copy of a requested Web […]