Caching method and apparatus for browser

A browser and caching technology, applied in the field of browser caching methods and devices, can solve the problems of cumbersome implementation, storage upper limit browser support, etc., and achieve the effect of simple implementation and reduction of requests and network traffic.

Active Publication Date: 2015-11-25
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In a system with high concurrency and high traffic, it is often necessary to cache the front-end pages. At present, there are generally solutions such as flash memory (flash) and local storage (localstorage) for the front-end cache on the web page (web) side. During the implementation process, the current solution The solution has problems of cumbersome implementation, storage cap and browser support

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Caching method and apparatus for browser
  • Caching method and apparatus for browser
  • Caching method and apparatus for browser

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] At present, most browsers generally cache opened webpages in a local cache directory, and when the webpage is opened next time, the cached webpage is read in the local cache directory. In general, the browser determines that the read cache is related to 3 fields:

[0029] Last-Modified: the last modification time of the file on the server;

[0030] Expires: In the local cache directory, the file expiration time;

[0031] Cache-control: Specifies the cache mechanism followed by the request and response, generally expired by the server

[0032] Time interval, the browser generates a specific expiration time according to the time interval.

[0033] When the browser requests server resources, if the Expires time and Cache-control value of the file in the cache directory are valid, the browser will not send an HTTP request, but directly read the local file in the local cache directory.

[0034] Browser requests for server resources can be divided into the following three ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a caching method and apparatus for a browser. The method comprises: when the browser opens a web page for the first time, acquiring a first page; after a web page property of the first page is loaded, triggering a page loading completion event; executing an initialization request on a second page in the page loading completion event; acquiring the second page with the initialization request, and caching the second page locally; and when the web page is opened again, acquiring the first page, and after a web page property of the first page is loaded, triggering the page loading completion event, and reading the cached second page.

Description

technical field [0001] The present invention relates to Internet caching technology, in particular to a browser caching method and device. Background technique [0002] In a system with high concurrency and high traffic, it is often necessary to cache the front-end pages. At present, there are generally solutions such as flash memory (flash) and local storage (localstorage) for the front-end cache on the web page (web) side. During the implementation process, the current solution The solution has the problems of cumbersome implementation, storage cap and browser support. Contents of the invention [0003] In order to solve the existing technical problems, the embodiments of the present invention mainly provide a browser caching method and device. [0004] The technical scheme of the embodiment of the present invention is realized like this: [0005] A browser caching method provided by an embodiment of the present invention includes: [0006] When the browser opens a we...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 李骏
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products