CN106326489A - Network resource updating method and device - Google Patents

Network resource updating method and device Download PDF

Info

Publication number
CN106326489A
CN106326489A CN201610815770.0A CN201610815770A CN106326489A CN 106326489 A CN106326489 A CN 106326489A CN 201610815770 A CN201610815770 A CN 201610815770A CN 106326489 A CN106326489 A CN 106326489A
Authority
CN
China
Prior art keywords
internet resources
renewal
server
file
preset internet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610815770.0A
Other languages
Chinese (zh)
Other versions
CN106326489B (en
Inventor
马展峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610815770.0A priority Critical patent/CN106326489B/en
Publication of CN106326489A publication Critical patent/CN106326489A/en
Application granted granted Critical
Publication of CN106326489B publication Critical patent/CN106326489B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a network resource updating method and device. The method in the embodiment includes the steps that from initialization of a page to closing of the page, update files of a preset network resource are regularly obtained from a server; the update files are cached into a browser caching; the preset network resource is updated or accessed, and the preset network resource is shown according to the update sources in the browser caching.

Description

The method and apparatus that Internet resources update
Technical field
The present invention relates to Internet technical field, particularly relate to the method and apparatus that a kind of Internet resources update.
Background technology
Along with the development of network, people rely on all the more the Internet and obtain information, and the general client browser that passes through is to ten thousand dimensions Net (Web) server sends various requests, and is shown the Internet resources sent from server in the page.
In prior art, typically by HTML (Hypertext Markup Language) (English full name: Hyper Text Transfer Protocol, english abbreviation: HTTP) caching technology realization acceleration web page access.Concrete, when user uses clear on the client When device of looking at accesses certain URL (English full name: Uniform Resource Locator, english abbreviation: URL), Browser transmits request information to server, and this solicited message includes this URL, and server returns one for this URL and comprises The response message of pagefile is to the browser of client, and this pagefile is buffered in browser rs cache and basis by browser This pagefile carries out page presentation, and wherein, this response message also includes the information for indicating the caching time limit, in the caching time limit This pagefile interior is buffered in browser rs cache always.When user uses browser again to access this URL, if currently locating Within the caching time limit, then browser read access file from browser rs cache, no longer send http request to server;If Beyond the caching time limit, then browser is to server request page file.
But, due to the problem that upgrades in time of pagefile to be considered, it is comparatively short that this caching time limit is typically arranged, and this leads When family use browser of applying accesses this URL again, the biggest probability to access file to remote server request.And from remotely Server obtains and accesses file time delay relatively greatly, is affected by network environmental factors, particularly in the situation that network environment is second-rate Lower network resource loads slow, causes period of reservation of number long.
Summary of the invention
Embodiments provide the method and apparatus that a kind of Internet resources update, it is possible to shorten and load preset network money The duration in source.
First aspect, the embodiment of the present invention provides a kind of method that Internet resources update, including:
During the page starts to be initialised to page close, timing obtains the renewal literary composition of preset Internet resources from server Part;
By in described renewal file cache to browser rs cache;
When described preset Internet resources are refreshed or conduct interviews, according to the renewal literary composition in described browser rs cache Described preset Internet resources are shown by part.
Second aspect, the embodiment of the present invention provides the device that a kind of Internet resources update, including:
Acquisition module, for during the page starts to be initialised to page close, timing obtains preset network from server The renewal file of resource;
Cache module, for by described renewal file cache to browser rs cache;
Display module, when described preset Internet resources are refreshed or conducted interviews, according to described browser Described preset Internet resources are shown by the renewal file in caching.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the present invention, owing to regularly obtaining the renewal file of preset Internet resources after the page starts to load from server, And be cached in browser rs cache, compared to existing technology in be only when preset Internet resources are accessed find cache file expired After be just cached to browser rs cache when server loads, when conducting interviews preset Internet resources, in the present invention, this is pre- Put the Internet resources expired probability in browser rs cache less, namely use in the present invention when loading preset Internet resources The probability that scheme enables to load these preset Internet resources from browser rs cache is bigger, in actual application, delays from browser Deposit load document and time-consumingly grow and time-consumingly grow from server load document usually two varying number levels, therefore, use this Scheme in invention can greatly shorten the duration loading preset Internet resources, and then reduces user when accession page Wait time-consuming and affected by network environmental factors.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of an embodiment of the method for the Internet resources renewal of the present invention;
Fig. 2 is the schematic flow sheet of an actual application scenarios of the method for the Internet resources renewal of the present invention;
Fig. 3 is the structural representation of an embodiment of the device of the Internet resources renewal of the present invention;
Fig. 4 is the structural representation of an embodiment of the terminal of the present invention.
Detailed description of the invention
Refer to the schematic flow sheet of an embodiment of the method that the Internet resources that Fig. 1, Fig. 1 are the present invention update.This In embodiment, the method that Internet resources update includes:
101, during the page starts to be initialised to page close, timing obtains the renewal of preset Internet resources from server File.
Browser by URL (English full name: Uniform Resource Locator, english abbreviation: When URL) content of pages being conducted interviews, download this content of pages from server, the page is initialized, with in this page Appearance is shown, and caches this content of pages.After the page starts to initialize to page close during this period in, browser Periodically obtain the renewal file of preset Internet resources from server, wherein, this periodically refers to every preset time, or refer to Being on the scheduled time, this is not restricted.Wherein, described preset Internet resources can be the renewal literary composition of the page when front opening Part, it is also possible to be the renewal file of other pages, can be when associated reset Internet resources (such as pattern in the page of front opening Or script), it is also possible to it is the associated reset Internet resources (such as pattern or script) in other pages, at this It is not restricted.Wherein, these preset Internet resources can be the Internet resources of default setting, it is also possible to is by receiving preset net Network resource the Internet resources determined are set, this is not restricted.
In the case of only having page open in a browser, browser could be from server request file, therefore, In the present embodiment, it is during the page starts to be initialised to page close, to carry out timing obtain preset Internet resources more from server New file.Preferably, in the present embodiment, during the page completes to be initialised to page close, carry out timing obtain preset from server The renewal file of Internet resources, this way it is possible to avoid affect the loading velocity of the page.
Wherein, the method updating file that browser periodically obtains preset Internet resources from server has multiple.Such as,
Concrete, browser periodically sends more newly requested to server, to be stored from server acquisition current server Preset Internet resources go forward side by side row cache.But, the preset Internet resources that browser gets from server each time compare this The preset Internet resources that ground is cached might not have renewal.
It is preferred, therefore, that in the present embodiment, browser periodically obtains the renewal file of preset Internet resources from server Time, ask particularly as follows: browser periodically sends the resource packet header to described preset Internet resources to server, described receiving During the resource header packet information that the request of described resource packet header is responded by server, judge described preset according to described resource header packet information Whether Internet resources have renewal;When determining that described preset Internet resources have renewal, obtain described preset net from described server The renewal file of network resource.Owing to server first sending the request of resource packet header, such server only need to return resource packet header letter Breath, without returning the whole resource bag updating file, greatly reduces the transmission quantity of data.
Wherein, judge whether described preset Internet resources have the method for renewal to have according to described resource header packet information multiple. Such as, this resource header packet information includes the renewal time of preset Internet resources.Institute is being judged according to described resource header packet information State preset Internet resources when whether having renewal, judge described preset Internet resources according to the renewal time of described preset Internet resources Whether there is renewal.Concrete, obtain the renewal time of the preset Internet resources that this locality is cached, if the preset network of local cache The renewal time of the preset Internet resources that the renewal time of resource is later than in resource header packet information, then can determine that preset Internet resources There is renewal, otherwise, it may be determined that these preset Internet resources do not update.
The most such as, this resource header packet information includes the renewal flag bit of preset Internet resources, and described renewal flag bit is used In the update content indicating described preset Internet resources.Judging that described preset Internet resources are according to described resource header packet information No when having renewal, judge whether described preset Internet resources have renewal according to the renewal flag bit of described preset Internet resources.Tool Body, obtain the renewal flag bit of the preset Internet resources that this locality is cached, if the renewal of the preset Internet resources of local cache Flag bit is different with the renewal flag bit of the preset Internet resources in resource header packet information, then can determine that preset Internet resources have more Newly, otherwise, it may be determined that these preset Internet resources do not update.
In the present embodiment, browser periodically sends more newly requested sending method to server to be had multiple.Optionally, browse Device by asynchronous JavaScript and XML (English full name: Asynchronous Javascript And XML, english abbreviation: AJAX) send more newly requested to server, to obtain from server the renewal file of preset Internet resources.Such as, browser is every The renewal file of preset Internet resources is obtained to server transmission get request or post request every preset time.
Preferably, browser is periodically when server sends more newly requested, and concrete, browser periodically sends to server Head asks, and after receiving the head response information of server response, determines that preset Internet resources have more according to this head response information Time new, just obtain the complete file updating file to server transmission get request or post request, it is of course also possible to logical Crossing and send other requests and obtain complete file, this is not restricted.
102, by described renewal file cache to browser rs cache.
Get the renewal file of preset Internet resources from server after, browser is by the renewal literary composition of these preset Internet resources Part is cached in browser rs cache.In actual application, preset Internet resources typically have certain caching in browser rs cache Time limit.Browser, when server gets the packet of this renewal file, also carries the caching time limit in this packet.Browse Device obtains this caching time limit from this packet, and determines this renewal file caching phase in this locality according to this caching time limit Limit.Concrete, the caching time limit entrained in packet can be a caching duration, it is also possible to is one and caches deadline Point, this is not restricted.Wherein, server is arranged on the method in caching time limit mainly two kinds, and one is to use default setting, One is that browser can send caching duration request when to server request file, and server exists according to the request of this caching duration Head response information arranges the caching time limit of file.
When 103, described preset Internet resources being conducted interviews, according to the renewal file in described browser rs cache to described Preset Internet resources are shown.
During page presentation, the refresh requests to preset Internet resources may be received.Receiving preset net During the refresh requests of network resource, browser without loading the renewal file of preset Internet resources from server, but directly from Browser rs cache loads this renewal file, and these preset Internet resources are shown.
After page close, when receiving the access request to these preset Internet resources, add without from server Carry the renewal file of preset Internet resources, but directly from browser rs cache, load this renewal file, and to this preset network Resource is shown.
Optionally, in the present embodiment, at the renewal file according to browser rs cache, described preset Internet resources are opened up When showing, the renewal file first detecting described browser rs cache is the most expired, specifically can be by the caching time limit of this renewal file Only contrast is determined that this renewal file is the most expired with current time.When described renewal file does not has expired, from described clear Device of looking at caching reads described renewal file.When this renewal file past tense, from server, load this renewal file.
In the present embodiment, the device timing updated due to preset Internet resources after the page starts to load obtains from server The renewal file of preset Internet resources, and being cached in browser rs cache, compared to existing technology in be only at preset Internet resources Find time accessed that cache file is crossed after date and is just cached to browser rs cache when server loads, to preset Internet resources When conducting interviews, in the present invention, these preset Internet resources expired probability in browser rs cache is less, namely preset loading The scheme in the present invention is used to enable to load the probability of these preset Internet resources from browser rs cache more during Internet resources Greatly, in actual application, time-consumingly grow from browser rs cache load document and time-consumingly grow usually two from server load document Individual varying number level, therefore, uses the scheme in the present invention can greatly shorten the duration loading preset Internet resources, and then Reduce user's waiting time-consuming and being affected by network environmental factors when accession page.Especially in the single-page of prior art In application, this single-page application only one of which page, not refresh page when feature is content of pages switching, rely on script dynamically to control System loads and represents, and the most refresh page does not means that the page does not updates, and only user actively refreshes or browser opens again Just can load from server time dynamic and update, easily by network environment influence in loading procedure, it is impossible to reply emergency needs The most more news.And in the present invention, during page presentation, timing obtains the renewal file of the page from server, at list Page application refreshes or browser can be loaded into renewal file when restarting immediately from caching, it is to avoid load and update By the situation of network environment influence in file processes.
Optionally, in the present embodiment, when browser sends more newly requested by the timing of AJAX technology to server, this is more Newly requested also include for indicate caching duration request, in order to described server according to described caching duration request arrange described in more The new file caching time limit in described browser rs cache.In the present embodiment, due to the renewal literary composition of the page that browser gets The renewal time closer current time of part, the caching duration asked in the caching duration request that therefore browser sends is permissible More longer than caching duration of the prior art.
Understand the present invention for convenience, the method Internet resources of the present invention updated below in conjunction with an actual application scenarios Carry out citing to describe.
As in figure 2 it is shown, the structural representation of another embodiment of the method for the Internet resources renewal that Fig. 2 is the present invention. In the present embodiment, when a page opened by browser, when the caching of local not this page being detected, or this locality is cached Pagefile expired time, send request to server, and receive the response data packet of server, this response data packet includes page The renewal flag bit of face file and the page.The page is initialized by the response data packet that browser returns according to server. The renewal flag bit of this pagefile and the page is also buffered in browser rs cache by browser in the lump.
Starting initialization from the page to start, browser sends head by AJAX to server every preset time and asks, Whether renewal is had with timing detection pagefile.Concrete, browser receives the response responded this head request from server Header.Wherein, this head response information includes the renewal flag bit of this page, and this renewal flag bit is for indicating the page more New content.During the head response information that head request is responded by the server that browser gets each time, by this head response information In the renewal flag bit updating flag bit and the current cache pagefile in browser rs cache compare, when these two When renewal flag bit is identical, representation page does not update, then browser continues waiting for sending head request next time;When this two During individual renewal flag bit difference, representation page has renewal, then browser sends get by AJAX to server and asks, to obtain Take the renewal file of the page.
When browser receives the response data packet that this get is asked by server, this response data packet is cached.Deng After preset time, browser sends head request to server again, reciprocal with this, until page close.Optionally, clear After device of looking at gets the renewal file of the page, stopping sending head request to server, this is not restricted.
When opening again after page furbishing or page close, from browser rs cache, read pagefile, and add Carry this page.In actual application, load the duration of the time-consuming generally 10ms rank of pagefile from browser rs cache, from remotely Server loads the duration of the time-consuming generally 100ms rank of pagefile, and is affected the most longer by network quality, Wait when user access preset Internet resources can be greatly shortened time-consuming in the present invention.
The method updated the Internet resources of the present invention above is described, below by the Internet resources of the present invention more New device is described.
Refer to the structural representation of an embodiment of the device that the Internet resources that Fig. 3, Fig. 3 are the present invention update.This In embodiment, the device 300 that Internet resources update includes:
Acquisition module 301, for during the page starts to be initialised to page close, timing obtains preset net from server The renewal file of network resource;
Cache module 302, for by described renewal file cache to browser rs cache;
Display module 303, when described preset Internet resources are refreshed or conducted interviews, browses according to described Described preset Internet resources are shown by the renewal file in device caching.
In the present embodiment, the device timing updated due to preset Internet resources after the page starts to load obtains from server The renewal file of preset Internet resources, and being cached in browser rs cache, compared to existing technology in be only at preset Internet resources Find time accessed that cache file is crossed after date and is just cached to browser rs cache when server loads, to preset Internet resources When conducting interviews, in the present invention, these preset Internet resources expired probability in browser rs cache is less, namely preset loading The scheme in the present invention is used to enable to load the probability of these preset Internet resources from browser rs cache more during Internet resources Greatly, in actual application, time-consumingly grow from browser rs cache load document and time-consumingly grow usually two from server load document Individual varying number level, therefore, uses the scheme in the present invention can greatly shorten the duration loading preset Internet resources, and then Reduce user's waiting time-consuming and being affected by network environmental factors when accessing preset Internet resources.
Optionally, described display module 303 specifically for:
The renewal file detecting described browser rs cache is the most expired;
When described renewal file does not has expired, from described browser rs cache, read described renewal file.
Optionally, described acquisition module 301 specifically for by AJAX technology timing to server send more newly requested, institute State the more newly requested renewal file for asking described preset Internet resources.
Optionally, described the most newly requested also include for indicate caching duration request, in order to described server is according to described Caching duration request arranges the described renewal file caching time limit in described browser rs cache.
Optionally, described acquisition module 301 specifically for:
Timing sends the resource packet header to described preset Internet resources to server and asks;
Receive the described server resource header packet information to the request response of described resource packet header;
Judge whether described preset Internet resources have renewal according to described resource header packet information;
When determining that described preset Internet resources have renewal, obtain the renewal of described preset Internet resources from described server File.
Optionally, described acquisition module 301 sends the resource packet header to described preset Internet resources in timing to server During request, send the head request of described preset Internet resources to server specifically for timing.
Optionally, described resource header packet information includes the renewal time of described preset Internet resources and/or updates flag bit, Described renewal flag bit is for indicating the update content of described preset Internet resources;
According to described resource header packet information, described acquisition module 301 is judging whether described preset Internet resources have renewal Time, judge described preset Internet resources specifically for the renewal time according to described preset Internet resources and/or renewal flag bit Whether there is renewal.
The embodiment of the present invention additionally provides another kind of terminal, as shown in Figure 4, for convenience of description, illustrate only and this The part that bright embodiment is relevant, concrete ins and outs do not disclose, and refer to embodiment of the present invention method part.This terminal is permissible For including mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), the arbitrarily terminal unit such as vehicle-mounted computer, as a example by terminal is as mobile phone:
Fig. 4 is illustrated that the block diagram of the part-structure of the mobile phone relevant to the terminal of embodiment of the present invention offer.With reference to figure 4, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1010, memorizer 1020, input block 1030, display unit 1040, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor The parts such as 1080 and power supply 1090.It will be understood by those skilled in the art that the handset structure shown in Fig. 4 is not intended that right The restriction of mobile phone, can include that ratio illustrates more or less of parts, or combine some parts, or different parts cloth Put.
Below in conjunction with Fig. 4 each component parts of mobile phone carried out concrete introduction:
RF circuit 1010 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, by base station After downlink information receives, process to processor 1080;It addition, be sent to base station by designing up data.Generally, RF circuit 1010 include but not limited to antenna, at least one amplifier, transceiver, bonder, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuit 1010 can also be led to network and other equipment by radio communication Letter.Above-mentioned radio communication can use arbitrary communication standard or agreement, includes but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memorizer 1020 can be used for storing software program and module, and processor 1080 is stored in memorizer by operation The software program of 1020 and module, thus perform the application of various functions and the data process of mobile phone.Memorizer 1020 can be led Including storage program area and storage data field, wherein, needed for storage program area can store operating system, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data field can store the use institute according to mobile phone The data (such as voice data, phone directory etc.) etc. created.Additionally, memorizer 1020 can include that high random access stores Device, it is also possible to include nonvolatile memory, for example, at least one disk memory, flush memory device or other volatibility are solid State memory device.
Input block 1030 can be used for receiving numeral or the character information of input, and produce with the user setup of mobile phone with And function controls relevant key signals input.Specifically, input block 1030 can include contact panel 1031 and other inputs Equipment 1032.Contact panel 1031, also referred to as touch screen, can collect user thereon or neighbouring touch operation (such as user Use any applicable object such as finger, stylus or adnexa behaviour on contact panel 1031 or near contact panel 1031 Make), and drive corresponding attachment means according to formula set in advance.Optionally, contact panel 1031 can include touching detection Device and two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 1080, and order that processor 1080 sends can be received and performed.Additionally, The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be used to realize contact panel 1031.Except touch surface Plate 1031, input block 1030 can also include other input equipments 1032.Specifically, other input equipments 1032 can include But it is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more.
Display unit 1040 can be used for each of the information that inputted by user of display or the information being supplied to user and mobile phone Plant menu.Display unit 1040 can include display floater 1041, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) Configure display floater 1041.Further, contact panel 1031 can cover display floater 1041, when contact panel 1031 detects Arrive thereon or after neighbouring touch operation, send processor 1080 to determine the type of touch event, with preprocessor 1080 provide corresponding visual output according to the type of touch event on display floater 1041.Although in the diagram, contact panel 1031 with display floater 1041 be to realize input and the input function of mobile phone as two independent parts, but some reality Execute in example, can be by integrated to contact panel 1031 and display floater 1041 and realize input and the output function of mobile phone.
Mobile phone may also include at least one sensor 1050, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor can include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light Light and shade regulate the brightness of display floater 1041, proximity transducer can cut out display floater when mobile phone moves in one's ear 1041 and/or backlight.As the one of motion sensor, accelerometer sensor can detect (generally three axles) in all directions and add The size of speed, can detect that size and the direction of gravity time static, can be used for identifying application (the such as horizontal/vertical screen of mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;As for mobile phone also Other sensors such as configurable gyroscope, barometer, drimeter, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 1060, speaker 1061, microphone 1062 can provide the audio interface between user and mobile phone.Audio frequency The signal of telecommunication after the voice data conversion that circuit 1060 can will receive, is transferred to speaker 1061, speaker 1061 changes Export for acoustical signal;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 1062, by voicefrequency circuit 1060 Voice data is converted to after reception, then after voice data output processor 1080 is processed, through RF circuit 1010 to be sent to ratio Such as another mobile phone, or voice data is exported to memorizer 1020 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070 Part, browsing webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 4 shows WiFi module 1070, but it is understood that, it is also not belonging to must be configured into of mobile phone, can not change as required completely Omit in the scope of the essence becoming invention.
Processor 1080 is the control centre of mobile phone, utilizes various interface and the various piece of the whole mobile phone of connection, It is stored in the software program in memorizer 1020 and/or module by running or performing, and calls and be stored in memorizer 1020 Interior data, perform the various functions of mobile phone and process data, thus mobile phone is carried out integral monitoring.Optionally, processor 1080 can include one or more processing unit;Preferably, processor 1080 can integrated application processor and modulation /demodulation process Device, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor is mainly located Reason radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 1080.
Mobile phone also includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system is logically contiguous with processor 1080, thus realizes management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although not shown, mobile phone can also include photographic head, bluetooth module etc., does not repeats them here.
In embodiments of the present invention, the processor 1080 included by this terminal also has more than control execution by Internet resources The method flow that the device updated performs.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the system of foregoing description, The specific works process of device and unit, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method are permissible Realize by another way.Such as, device embodiment described above is only schematically, such as, and described unit Dividing, be only a kind of logic function and divide, actual can have other dividing mode, the most multiple unit or assembly when realizing Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part that in other words prior art contributed or this technical scheme completely or partially can be with the form of software product Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or the network equipment etc.) performs the complete of method described in each embodiment of the present invention Portion or part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, above example only in order to technical scheme to be described, is not intended to limit;Although with reference to front State embodiment the present invention has been described in detail, it will be understood by those within the art that: it still can be to front State the technical scheme described in each embodiment to modify, or wherein portion of techniques feature is carried out equivalent;And these Amendment or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (12)

1. the method that Internet resources update, it is characterised in that including:
During the page starts to be initialised to page close, timing obtains the renewal file of preset Internet resources from server;
By in described renewal file cache to browser rs cache;
When described preset Internet resources are refreshed or conduct interviews, according to the renewal file pair in described browser rs cache Described preset Internet resources are shown.
The method that Internet resources the most according to claim 1 update, it is characterised in that described according to described browser rs cache Renewal file described preset Internet resources are shown, including:
The renewal file detecting described browser rs cache is the most expired;
When described renewal file does not has expired, from described browser rs cache, read described renewal file.
The method that Internet resources the most according to claim 1 update, it is characterised in that described timing obtains institute from server State the renewal file of preset Internet resources, including:
Send more newly requested by the timing of AJAX technology to server, described more newly requested for asking described preset Internet resources Renewal file.
Internet resources the most according to claim 3 update method, it is characterised in that described the most newly requested also include for Instruction caching duration request, in order to described server arranges described renewal file according to the request of described caching duration and browses described The caching time limit in device caching.
5. the method updated according to the Internet resources described in any one of Claims 1-4, it is characterised in that described timing is from clothes Business device obtains the renewal file of described preset Internet resources, including:
Timing sends the resource packet header to described preset Internet resources to server and asks;
Receive the described server resource header packet information to the request response of described resource packet header;
Judge whether described preset Internet resources have renewal according to described resource header packet information;
When determining that described preset Internet resources have renewal, obtain the renewal literary composition of described preset Internet resources from described server Part.
The method that Internet resources the most according to claim 5 update, it is characterised in that described resource header packet information includes institute Stating the renewal time of preset Internet resources and/or update flag bit, described renewal flag bit is used for indicating described preset network to provide The update content in source;
Described judge whether described preset Internet resources have renewal according to described resource header packet information, including:
Renewal time and/or renewal flag bit according to described preset Internet resources judge whether described preset Internet resources have more Newly.
7. the device that Internet resources update, it is characterised in that including:
Acquisition module, for during the page starts to be initialised to page close, timing obtains preset Internet resources from server Renewal file;
Cache module, for by described renewal file cache to browser rs cache;
Display module, when described preset Internet resources are refreshed or conducted interviews, according to described browser rs cache In renewal file described preset Internet resources are shown.
Internet resources the most according to claim 7 update device, it is characterised in that described display module specifically for:
The renewal file detecting described browser rs cache is the most expired;
When described renewal file does not has expired, from described browser rs cache, read described renewal file.
The device that Internet resources the most according to claim 7 update, it is characterised in that described acquisition module is specifically for logical Cross the timing of AJAX technology and send more newly requested to server, described more newly requested for asking the renewal of described preset Internet resources File.
The device that Internet resources the most according to claim 9 update, it is characterised in that the most newly requested described also including is used In instruction caching duration request, in order to described server arranges described renewal file described clear according to the request of described caching duration The caching time limit in device of looking at caching.
11. devices updated according to the Internet resources described in any one of claim 7 to 10, it is characterised in that described acquisition mould Block specifically for:
Timing sends the resource packet header to described preset Internet resources to server and asks;
Receive the described server resource header packet information to the request response of described resource packet header;
Judge whether described preset Internet resources have renewal according to described resource header packet information;
When determining that described preset Internet resources have renewal, obtain the renewal literary composition of described preset Internet resources from described server Part.
The device that 12. Internet resources according to claim 11 update, it is characterised in that described resource header packet information includes The renewal time of described preset Internet resources and/or renewal flag bit, described renewal flag bit is used for indicating described preset network The update content of resource;
Described acquisition module, when judging whether described preset Internet resources have renewal according to described resource header packet information, is specifically used Judge whether described preset Internet resources have more in the renewal time according to described preset Internet resources and/or renewal flag bit Newly.
CN201610815770.0A 2016-09-09 2016-09-09 Method and device for updating network resources Active CN106326489B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610815770.0A CN106326489B (en) 2016-09-09 2016-09-09 Method and device for updating network resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610815770.0A CN106326489B (en) 2016-09-09 2016-09-09 Method and device for updating network resources

Publications (2)

Publication Number Publication Date
CN106326489A true CN106326489A (en) 2017-01-11
CN106326489B CN106326489B (en) 2021-08-27

Family

ID=57787723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610815770.0A Active CN106326489B (en) 2016-09-09 2016-09-09 Method and device for updating network resources

Country Status (1)

Country Link
CN (1) CN106326489B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170771A (en) * 2017-12-26 2018-06-15 福建星瑞格软件有限公司 A kind of database height takes the automatic canceling method of inquiry
CN108228210A (en) * 2017-12-08 2018-06-29 平安科技(深圳)有限公司 A kind of resource regeneration method and system
CN108848173A (en) * 2018-06-25 2018-11-20 郑州云海信息技术有限公司 A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN109213560A (en) * 2018-09-12 2019-01-15 上海连尚网络科技有限公司 A kind of method and apparatus of information page presentation
CN109408150A (en) * 2018-10-30 2019-03-01 维沃移动通信有限公司 It is a kind of to apply loading method and mobile terminal fastly

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001086510A1 (en) * 2000-05-08 2001-11-15 Verity, Inc. Application caching system and method
CN105279034A (en) * 2015-10-26 2016-01-27 北京皮尔布莱尼软件有限公司 Consistency cache control system and method
WO2016094286A1 (en) * 2014-12-08 2016-06-16 Amazon Technologies, Inc. Intelligent browser-based display tiling
CN105893429A (en) * 2015-12-08 2016-08-24 乐视云计算有限公司 Method and system for optimizing WEB cache

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001086510A1 (en) * 2000-05-08 2001-11-15 Verity, Inc. Application caching system and method
WO2016094286A1 (en) * 2014-12-08 2016-06-16 Amazon Technologies, Inc. Intelligent browser-based display tiling
CN105279034A (en) * 2015-10-26 2016-01-27 北京皮尔布莱尼软件有限公司 Consistency cache control system and method
CN105893429A (en) * 2015-12-08 2016-08-24 乐视云计算有限公司 Method and system for optimizing WEB cache

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHEN WANG 等: "How effective is mobile browser cache?", 《S3 "11: PROCEEDINGS OF THE 3RD ACM WORKSHOP ON WIRELESS OF THE STUDENTS, BY THE STUDENTS, FOR THE STUDENTS》 *
孟飞: "嵌入式浏览器缓存的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228210A (en) * 2017-12-08 2018-06-29 平安科技(深圳)有限公司 A kind of resource regeneration method and system
WO2019109513A1 (en) * 2017-12-08 2019-06-13 平安科技(深圳)有限公司 Resource updating method and system, electronic device, and medium
CN108228210B (en) * 2017-12-08 2021-06-04 平安科技(深圳)有限公司 Resource updating method and system
CN108170771A (en) * 2017-12-26 2018-06-15 福建星瑞格软件有限公司 A kind of database height takes the automatic canceling method of inquiry
CN108170771B (en) * 2017-12-26 2022-04-12 福建星瑞格软件有限公司 Automatic cancellation method for database high-time-consumption query
CN108848173A (en) * 2018-06-25 2018-11-20 郑州云海信息技术有限公司 A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN109213560A (en) * 2018-09-12 2019-01-15 上海连尚网络科技有限公司 A kind of method and apparatus of information page presentation
CN109408150A (en) * 2018-10-30 2019-03-01 维沃移动通信有限公司 It is a kind of to apply loading method and mobile terminal fastly

Also Published As

Publication number Publication date
CN106326489B (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN106970790B (en) Application program creating method, related equipment and system
CN106326489A (en) Network resource updating method and device
CN107329985B (en) Page collection method and device and mobile terminal
CN104598262A (en) Method and device for updating mobile application
CN103279574A (en) Method, device and terminal device for loading explorer pictures
CN105320687A (en) Webpage display method and device
CN103455582A (en) Display method of navigation page of browser and mobile terminal
CN109948090B (en) Webpage loading method and device
CN108241703B (en) Webpage data transmission method and device
CN109408150A (en) It is a kind of to apply loading method and mobile terminal fastly
CN108073647B (en) Webpage display method and device
CN103617164B (en) Webpage prefetching method, device and terminal equipment
CN103699595A (en) Method and device for webpage caching of terminal browser and terminal
CN105955739A (en) Graphical interface processing method, apparatus and system
CN103310009A (en) Method, device and terminal for updating webpage data
CN104750730B (en) Browser display method and device
CN106055480A (en) Webpage debugging method and terminal
WO2015003636A1 (en) Method and device for interception of page elements
CN105868319B (en) Webpage loading method and device
CN105955597A (en) Method and device for displaying information
CN104751092B (en) Method and device for processing graphic code
CN103310007A (en) Method, device and equipment for switching webpage
CN103399911A (en) Access processing method, device and terminal device on basis of browser client
CN103607431A (en) Mobile terminal resource processing method, apparatus and equipment thereof
CN106155888A (en) The detection method of webpage loading performance and device in a kind of Mobile solution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant