Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for updating browser cache

An update method and browser technology, applied in the network field, can solve the problems of errors in the update process and low browser cache update efficiency, and achieve the effect of improving efficiency

Inactive Publication Date: 2013-08-21
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 58 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in this traditional browser cache update method, as long as the resource files that need to be cached on the page are updated, all resource files that need to be cached on the page need to be downloaded again, and if a resource file makes an error during the update process, the browser will It will think that the entire update process is wrong, and all the resource files that need to be cached will be downloaded again when the page is opened next time, resulting in inefficient browser cache update

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
  • Method and system for updating browser cache
  • Method and system for updating browser cache
  • Method and system for updating browser cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] Such as figure 1 As shown, in one embodiment, a browser cache update method includes the following steps:

[0039] Step S0, receiving the request to open the page, and pulling the configuration file of the page from the server.

[0040] In one embodiment, when a user opens a certain page through a browser, the browser sends a request to the server to load the page, and the server stores the configuration file of the page. After receiving the page loading request, the server returns the configuration file of the page to the browser.

[0041] Preferably, the configuration file pulled from the server records the identifier of the resource file to be cached and the modification timestamp of the resource file. The modification time stamp of a resource file is an identifier capable of distinguishing the sequence of file modification, for example, it may be the time when the resource file was last modified or the version number of the resource file.

[0042] Step S20, compa...

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

A method for updating a browser cache comprises the steps of receiving a request for page opening, and pulling a configuration file of a page from a server, wherein identifications of resource files of the page, which are required to be cached, and modification timestamps of resource files are recorded in the configuration file of the page; comparing the pulled configuration file with a local configuration file to obtain the identification of the resource file, which is required by updating of the browser cache; and updating the corresponding resource file in the browser cache according to the obtained identification of the resource file. According to the method for updating the browser cache, when the cache is required to be updated, only the resource file which is required to be updated is required to be downloaded, but not all the resource files of the page, which are to be cached, are required to be downloaded, so that the updating efficiency of the browser cache is improved. Besides, the invention provides a system for updating the browser cache.

Description

【Technical field】 [0001] The invention relates to the field of network technology, in particular to a browser cache update method and system. 【Background technique】 [0002] The resource files of web pages include resource files that need to be updated in real time and resource files that are not frequently updated. When the browser opens a web page every time, it needs to download resource files that need to be updated in real time from the server. , they can be stored in the browser cache for use when the browser opens the page next time, so that the loading of the page can be accelerated. [0003] In order to keep the latest data in the browser cache, the browser cache needs to be updated before loading the resource files in the browser cache. Specifically, the browser first asks the server whether the resource file to be cached on the page has been modified. If not, it directly loads the resource file in the local browser cache and displays the page; otherwise, download...

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/30H04L29/08
Inventor 李小兰唐启宏
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products