CN106649395A - Webpage updating method and apparatus - Google Patents
Webpage updating method and apparatus Download PDFInfo
- Publication number
- CN106649395A CN106649395A CN201510738131.4A CN201510738131A CN106649395A CN 106649395 A CN106649395 A CN 106649395A CN 201510738131 A CN201510738131 A CN 201510738131A CN 106649395 A CN106649395 A CN 106649395A
- Authority
- CN
- China
- Prior art keywords
- page
- static resource
- issue
- updated
- released
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
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 Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a webpage updating method. The method comprises the steps of obtaining and releasing a to-be-released static resource, wherein the to-be-released static resource includes a to-be-updated static resource; obtaining a file name and a corresponding information abstract of the to-be-updated static resource; renaming the to-be-updated static resource according to the file name and the corresponding information abstract of the to-be-updated static resource, thereby obtaining a new name of the to-be-updated static resource; and inserting the new name of the to-be-updated static resource into a page code of a to-be-released page, and releasing the to-be-released page inserted with the new name. By adopting the method, the problem of mismatch of the page and the static resource during asynchronous updating of the page and the static resource can be avoided, so that the page error rate can be reduced. In addition, the invention provides a webpage updating apparatus.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of webpage update method and device.
Background technology
With the development of Internet technology, various Web (network) application program is emerged, such as forum,
Microblogging and Virtual Space etc..Web application generally have frequently iteration update, when need to Web should
When being updated with program, the static resource and the page in web application can be updated.If
First update static resource and update the page again, for the user of the page was once accessed, due to browser
Caching is had been carried out to the static resource before renewal, so when accessing the page again at no point in the update process,
The page will not be loaded into the static resource after updating.But for the user of the maiden visit page, then
It is possible that the page before updating is loaded into the situation of the static resource after updating, so as to cause page fault.
If first update the page update static resource again, it is possible that update after the page be loaded into update before it is quiet
State resource, can also cause page fault.Due to it cannot be guaranteed that the page and static resource are issued completely simultaneously, can
Can there is renewal of the page and static resource updates asynchronous so that the page and static resource are mismatched, and are caused
There is page fault, as shown in Figure 1.
The content of the invention
Based on this, it is necessary to for above-mentioned technical problem, there is provided a kind of webpage update method and device, can keep away
Exempt from the page and static resource unmatched problem when the page and asynchronous static resource renewal, so as to reduce page
Face error rate.
A kind of webpage update method, methods described includes:
Obtain static resource to be released and issued, the static resource to be released includes static money to be updated
Source;
Obtain the filename and corresponding informative abstract of static resource to be updated;
According to the filename of the static resource to be updated the static state to be updated is provided with corresponding informative abstract
Source carries out renaming, obtains the new name of the static resource to be updated;
The new name of the static resource to be updated is inserted in the page code of the page to be released, and will be inserted
Enter the page to be released after the new name to be issued.
A kind of webpage updating device, described device includes:
Static resource release module, it is described to be released quiet for obtaining static resource to be released and being issued
State resource includes static resource to be updated;
Informative abstract acquisition module, for obtaining the filename and corresponding informative abstract of static resource to be updated;
Renamer module, for according to the filename of the static resource to be updated and corresponding informative abstract pair
The static resource to be updated carries out renaming, obtains the new name of the static resource to be updated;
Page issuing module, for the new name of the static resource to be updated to be inserted into into the page to be released
In page code, and the page to be released inserted after the new name is issued.
A kind of webpage update method, methods described includes:
Obtain the accessing page request that terminal sends;
Judge whether to complete page issue, the page after issuing if so, then is obtained, after the issue
The page obtain issue after static resource, by the static resource after the page after the issue and the issue
It is back to the terminal;
Wherein, the new of the static resource after the issue is inserted in the page code of the page after the issue
Name.
A kind of webpage updating device, described device includes:
Second judge module, for obtaining the accessing page request of terminal transmission, judges whether to complete the page
Issue;
Second returns module, if issuing for completing the page, the page after issuing is obtained, according to described
The page after issue obtains the static resource after issuing, by the page after the issue and the issue after it is quiet
State resource is back to the terminal;
Wherein, the new of the static resource after the issue is inserted in the page code of the page after the issue
Name.
Above-mentioned webpage update method and device, after static resource to be released is issued, by will be to be updated quiet
The new name of state resource is inserted in the page code of the page to be released, thus, it is possible to using static money to be updated
The filename in source and the mapping relations of informative abstract, accurately obtain static resource to be updated in the page to be released
Deployment path.So as to static resource to be updated is loaded onto in the page to be released, the page is effectively overcome more
The page and static resource unmatched problem when new and static resource updates asynchronous.
Description of the drawings
Fig. 1 is the schematic diagram for showing page fault in one embodiment in a browser;
Fig. 2 is the applied environment figure of webpage update method in one embodiment;
Fig. 3 is the structural representation of the server that supported web page updates in one embodiment;
Fig. 4 is the flow chart of webpage update method in one embodiment;
Fig. 5 is the flow chart of webpage update method in another embodiment;
Fig. 6 is to show the schematic diagram for updating the front page in one embodiment in a browser;
Fig. 7 is the schematic diagram for showing the page after updating in one embodiment in a browser;
Fig. 8 is the structural representation of webpage updating device in one embodiment;
Fig. 9 is the structural representation of webpage updating device in another embodiment;
Figure 10 is the structural representation of informative abstract acquisition module in one embodiment;
Figure 11 is the structural representation of webpage updating device in further embodiment;
Figure 12 is the structural representation of webpage updating device in another embodiment.
Specific embodiment
Webpage update method provided in the embodiment of the present invention can apply to applied environment as shown in Figure 2
In.With reference to shown in Fig. 2, user is interacted with server 204 using terminal 202 by network.Terminal
202 include that desktop computer, notebook computer, panel computer and smart mobile phone of browser etc. can be run.With
Family can by browser to server 204 send HTTP (HyperText Transfer Protocol, it is super literary
This host-host protocol) request, the request access web application such as Virtual Space or forum.When server 204
When needing to be updated web application, can to the static resource in redaction web application and
The page is issued.Before issue, it is (to be released quiet that server 204 obtains all static resources to be released
State resource includes not updating static resource and static resource to be updated), calculate all static resource correspondences to be released
Informative abstract, and mapping relations set up between the filename and informative abstract of static resource to be released.
When being issued, server 204 can be issued first to static resource to be released.Secondly, clothes
Business device 204 enters with corresponding informative abstract according to the filename of static resource to be updated to static resource to be updated
Row renaming, obtains the new name of static resource to be updated.Server 204 is new by static resource to be updated
Name is inserted in the page code of the page to be released, and the page to be released after the new name of insertion is carried out sending out
Cloth.The page and static resource unmatched problem when effectively prevent the page and asynchronous static resource renewal,
So as to reduce page fault rate.
In one embodiment, as shown in Figure 3, there is provided the server that a kind of supported web page updates.The clothes
Business device includes processor, storage medium, internal memory and the network interface connected by system bus.Wherein, should
The storage medium of server is stored with operating system, data base and webpage updating device, the webpage updating device
For realizing a kind of webpage update method suitable for server.The processor of the server is used to provide calculating
And control ability, support the operation of whole server.The interior webpage saved as in storage medium of the server is more
The operation of new equipment provides environment.The network interface of the server is used to pass through network with outside terminal according to this
Connection communication, such as receive the HTTP request that browser sends, and the static money after updating is returned to browser
Page behind source and renewal etc..Server can be realized using independent server or cluster server.
In one embodiment, as shown in Figure 4, there is provided a kind of webpage update method, with this method application
Illustrate as a example by server, specifically include:
Step 402, obtains static resource to be released and is issued, and static resource to be released includes to be updated quiet
State resource.
Static resource refer in the page quote CSS (Cascading Style Sheets, CSS, one
Plant computer language) file, a kind of Javascript (literal translation formula script) files and CSS files needs
The file such as picture, video.The page includes HTML (HyperText Markup Language, super text
This markup language) page, Web page and a kind of .NET (computer language) page etc., wherein HTML
The page can be HTML5 (HTML the 5th edition) page.Static resource to be released includes not updating static money
Source and static resource to be updated.Do not update static resource and refer to the static resource that need not be updated.It is to be updated quiet
State resource refers to the static resource for needing to update.When website or web application update, need to issue new
The static resource and the page of version.The static resource of redaction is static resource to be released, the page of redaction
The page i.e. to be released.Static resource and the page can be deployed in same server, it is also possible to be deployed in difference
Server in.Server can be independent server, or cluster server.
Server can respectively be issued to static resource to be released and the page to be released.Server can be first
Static resource to be released is issued, then treats the issue page and issued.When being issued, service
Device can first obtain all static resources to be released, wherein, static resource to be released includes not updating static state
Resource and static resource to be updated, issue to static resource to be released.Published method can adopt non-covered
Formula published method.Static resource after issue may also be referred to as the static resource after updating.
After static resource to be released is issued and before the page to be released issue, user is might have by eventually
The browser installed in end to server sends accessing page request.For the user for once accessing the page,
Because browser has been carried out caching to the static resource before renewal, server can be asked according to page access
Ask and only return the page before updating, browser is parsed to the page before renewal, and utilization is cached more
The page that the page rendering before static resource and renewal before new goes out before updating.For accessing the page first
User, server is back to the static resource before the page before renewal and renewal according to accessing page request
Browser, browser is parsed to the static resource before the page before renewal and renewal, before rendering renewal
The page.It is static resource before updating due to what is quoted in the page before renewal, therefore browsing in user
The page before updating still can be normally shown in device.
Step 404, obtains the filename and corresponding informative abstract of static resource to be updated.
Before being issued, server can in advance obtain the filename of static resource to be released, and calculating is treated
The corresponding informative abstract of static resource is issued, and sets up the filename and corresponding letter of static resource to be released
Mapping relations between breath summary.
After static resource to be released is issued, server can treat the issue page and be issued.In order to reduce
The computational burden of server and effectively save flow, treat issue the page and issued when, do not update quiet
State resource can hold reference in the page to be released relaying continuation of insurance, only reference need to be updated in the page to be released and be treated more
New static resource.
Step 406, provides with corresponding informative abstract according to the filename of static resource to be updated to static state to be updated
Source carries out renaming, obtains the new name of static resource to be updated.
Because the filename of static resource to be updated has mapping relations with corresponding informative abstract, server can
To be ordered static resource to be updated with corresponding informative abstract according to the filename of static resource to be updated again
Name, obtains the new name of static resource to be updated.
Step 408, the new name of static resource to be updated is inserted in the page code of the page to be released, and
The page to be released after the new name of insertion is issued.
Server quotes the static resource to be updated of renaming in the page to be released by referencing function, will treat
The new name for updating static resource is inserted in the page code of the page to be released, thus, it is possible to using to be updated
The filename of static resource and the mapping relations of informative abstract, accurately obtain to be updated quiet in the page to be released
The deployment path of state resource.So as to static resource to be updated is loaded onto in the page to be released, effectively overcome
The page and static resource unmatched problem when renewal of the page and static resource update asynchronous.
The page after issue may also be referred to as the page after updating.After renewal can be loaded in the page after renewal
Static resource.Published method can adopt non-covered formula published method, thus it is possible, on the one hand, can effectively keep away
Exempt from the page and static resource unmatched problem when the page and asynchronous static resource renewal, on the other hand, such as
When fruit static resource in the updated and/or the page after updating break down in running, it is also possible to side
Just rollback is carried out in time.
If using cover type published method, that is, deleted in the page to be released to the static state money before renewal
The reference in source and directly quote static resource to be updated, it is possible to just have when the page to be released has not also been issued
User to access pages, now update before the page loading is update after static resource, can cause the page with
Static resource is mismatched, so as to cause the page to show mistake.By static resource to be released and the page to be released point
Do not issued, and using non-covered formula published method, can effectively be overcome the page occurred in said circumstances
Face and the unmatched problem of static resource.
In the present embodiment, after static resource to be released is issued, by by the new life of static resource to be updated
Name be inserted in the page code of the page to be released, thus, it is possible to the filename using static resource to be updated with
The mapping relations of informative abstract, accurately obtain the deployment path of static resource to be updated in the page to be released.
So as to static resource to be updated is loaded onto in the page to be released, renewal of the page and static resource are effectively overcome
The page and static resource unmatched problem when updating asynchronous.
Further, by the webpage update method provided in the present embodiment with traditional by repairing to static resource
Change method of the mode of inquiry string to carry out webpage renewal to compare.Although changing inquiry word to static resource
The mode of symbol string, can avoid the page that renewal of the page and static resource occur when updating asynchronous with static money
The unmatched problem in source.But after to static resource addition inquiry string, even if static resource is appointed
What is changed, and browser also can go to ask to download the static file after addition inquiry string.If it is right
Static resource to be updated changes inquiry string, and browser only goes to ask to download the newest static money changed
Source, server needs for calculating the deployment road of each static resource file to be updated according to inquiry string
Footpath, calculates complicated, and is at no point in the update process being calculated, to expend compared with various flow.
In the present embodiment, because the corresponding informative abstract of static resource to be released was precalculated before issue
, when the page to be released is issued, only the new name of static resource to be updated need to be inserted into page generation
In code.Therefore the computational burden of server can be effectively reduced at no point in the update process, and effectively reduce
Flow is consumed.
In one embodiment, before the step of obtaining static resource to be released and issued, also include:
Obtain the filename of static resource to be released;Calculate the corresponding informative abstract of static resource to be released;Foundation is treated
Issue the mapping relations between the filename and informative abstract of static resource.
In the present embodiment, server obtains the filename of static resource to be released, that is, obtains all not more
The filename of new static resource and static resource to be updated.Server calculates the corresponding letter of static resource to be released
Breath is made a summary, that is, calculating does not all update static resource and the corresponding informative abstract of static resource to be updated.
Specifically, calculated using message digest algorithm and all do not update static resource and static resource to be updated
Corresponding informative abstract.Message digest algorithm includes MD5, and (Message Digest Algorithm MD5, disappear
Breath digest algorithm the 5th edition), SHA1 (Secure Hash Algorithm, Secure Hash Algorithm) etc..Service
Device sets up mapping relations to the filename of static resource to be released with corresponding informative abstract.
Further, server can by the filename of the static resource to be released with mapping relations with it is corresponding
Informative abstract recorded.For example, server is by the file of the static resource to be released with mapping relations
Name is recorded in mapped file with corresponding informative abstract.Server can be from the file of static resource to be released
The filename and corresponding informative abstract of static resource to be updated are extracted in name and informative abstract.
In one embodiment, according to the filename and corresponding informative abstract of static resource to be updated, treat
Updating static resource carries out renaming, the step of obtain the new name of static resource to be updated, including:To treat
Filename, corresponding informative abstract and the preset characters or preset characters string for updating static resource are spliced
Afterwards, the new name of static resource to be updated is generated.Wherein, preset characters include connector, underscore etc.,
Preset characters string can include multiple preset characters.Extension name can be included in filename, it is also possible to do not include
Extension name.If not including extension name in filename, by the filename of static resource to be updated, corresponding
After informative abstract, preset characters or preset characters string and extension name are spliced, static money to be updated is generated
The new name in source.
Illustrated as a example by not including extension name in filename.For example, static resource to be updated is aaa.css,
Its filename aaa, corresponding informative abstract is xxxx, extends entitled css, and preset characters are _ (underscore),
Filename, informative abstract, preset characters and extension name are carried out into splicing and obtains aaa_xxxx.css, will
New names of the aaa_xxxx.css as resource to be updated.
In one embodiment, the step of obtaining the filename of static resource to be updated with corresponding informative abstract,
Including:By the corresponding informative abstract of static resource to be released informative abstract corresponding with the static resource before renewal
Compare;Extract corresponding informative abstract in static resource to be released corresponding with the static resource before renewal
The inconsistent static resource of informative abstract is static resource to be updated, obtains the static resource to be updated of extraction
Filename and corresponding informative abstract.
In the present embodiment, static resource can have multiple versions.Static resource before renewal is quiet after updating
A upper version of state resource, the static resource after renewal is the next version of the static resource before updating.
Static resource includes multiple static resource files.Static resource file can be in multiple versions using identical
Filename.Server obtains all static resources to be released, and all static resources to be released are calculated, point
Do not obtain the corresponding informative abstract of each static resource file to be released.Obtain every in the static resource before updating
The corresponding informative abstract of individual static resource file.Static state to be released can be provided according to the filename of static resource
The corresponding informative abstract in source informative abstract corresponding with the static resource before renewal is compared respectively, that is,
By the corresponding informative abstract of each static resource file to be released with update before the corresponding letter of static resource file
Breath summary is compared.
Because informative abstract and static resource are one-to-one, if the filename correspondence of same static resource
Two informative abstracts compare it is completely the same, then it represents that the static resource is not changed, it is not necessary to be updated,
The corresponding static resource of informative abstract for comparing consistent is defined as not updating static resource.If there is comparison
Inconsistent informative abstract, then it represents that the static resource is changed, needs to be updated, and comparison is differed
The corresponding static resource of informative abstract of cause is defined as static resource to be updated.Carry in static resource to be released
Static resource to be updated is taken, and obtains the filename and corresponding informative abstract of static resource to be updated.
In one embodiment, static resource to be updated is extracted in static resource to be released, can be being issued
Carry out before static resource.Specifically comprise the following steps:Obtain the filename of static resource to be released;Meter
Calculate the corresponding informative abstract of static resource to be released;Set up the filename and informative abstract of static resource to be released
Between mapping relations;The corresponding informative abstract of static resource to be released is corresponding with the static resource before renewal
Informative abstract compare;Static state before extracting corresponding informative abstract in static resource to be released and updating
The inconsistent static resource of the corresponding informative abstract of resource is static resource to be updated.
Further, after static resource to be updated is extracted, the net provided in above-described embodiment can be adopted
Web update method is issued respectively to static resource to be released and the page to be released.
In the present embodiment, due to the corresponding informative abstract of static resource to be released and in static resource to be released
It is middle to extract static resource to be updated, and it is equal with corresponding informative abstract to obtain the filename of static resource to be updated
Carried out before issue such that it is able to further reduce flow consumption.
In one embodiment, static resource to be updated is extracted in static resource to be released, can be being issued
Carry out after static resource.Specifically comprise the following steps:Obtain the filename of static resource to be released;Meter
Calculate the corresponding informative abstract of static resource to be released;Set up the filename and informative abstract of static resource to be released
Between mapping relations;Obtain static resource to be released and issued, static resource to be released includes treating more
New static resource;By the corresponding informative abstract of static resource to be released letter corresponding with the static resource before renewal
Breath summary is compared;Static resource before extracting corresponding informative abstract in static resource to be released and updating
The inconsistent static resource of corresponding informative abstract is static resource to be updated.
Further, after static resource to be updated is extracted, the net provided in above-described embodiment can be adopted
Web update method is treated the issue page and is issued.
In one embodiment, the method also includes:Obtain the accessing page request that terminal sends;Judgement is
It is no to have completed page issue, the page after issuing if so, then is obtained, obtained according to the page after issue and issued
Static resource afterwards, by the static resource after the page after issue and issue terminal is back to;Otherwise, obtain
The page before issue, according to the page before issue the static resource before issuing is obtained, by the page before issue and
Static resource before issue is back to terminal.
In the present embodiment, terminal sends accessing page request by browser to server.For example, terminal is led to
Cross browser and send HTTP request to server, ask accession page.If server is receiving the page
After access request, the issue of the page has been completed, then according to the accessing page request by the page after issue with
Static resource after issue is back to terminal.Terminal is quiet after browser is to the page after renewal and renewal
State resource is parsed, and renders the page after updating.
If server is after accessing page request is received, the issue for having only completed static resource is not yet complete
The issue of the page in pairs, for the terminal for accessing the page first, server will according to the accessing page request
The page before issue is back to terminal with the static resource before issue.Terminal is by browser to the page before renewal
Static resource before face and renewal is parsed, and renders the page before updating.
For the terminal for once accessing the page, due to having cached the static resource before issuing in browser,
The page before issue can be back to terminal by server according to accessing page request.Terminal passes through browser pair
The page before renewal is parsed, and using the page wash with watercolours before the static resource before the renewal for having cached and renewal
Dye the page before updating.Thus it is avoided that the page and static resource update nonsynchronous problem, so as to drop
Low page fault rate.
In one embodiment, as shown in Figure 5, there is provided a kind of webpage update method, the method includes:
Step 502, obtains the accessing page request that terminal sends.
Step 504, judges whether to complete page issue;If so, step 506 is then entered, otherwise, is entered
Step 508, the static resource before returning the page before issuing and issue according to accessing page request.
Step 506, obtains the page after issuing, and according to the page after issue the static resource after issuing is obtained,
Static resource after the page after issue and issue is back to into terminal;Wherein, the page of the page after issue
The new name of the static resource after issuing is inserted in code.
In the present embodiment, terminal sends accessing page request by browser to server.For example, terminal is led to
Cross browser and send HTTP request to server, ask accession page.In one embodiment, if not complete
Issue into the page, then obtain the page before issuing, the static resource before issuing is obtained according to the page before issue,
Static resource before the page before issue and issue is back to into terminal.If server is receiving page visit
After asking request, the issue for having only completed static resource not yet completes the issue to the page, for accessing first
The terminal of the page, server provides the page before issue with the static state before issue according to the accessing page request
Source is back to terminal.Terminal is parsed by browser to the static resource before the page before renewal and renewal,
Render the page before updating.As shown in fig. 6, the page before the renewal for showing in a browser exists for user
The model delivered in forum.
If server is after accessing page request is received, the issue of the page has been completed, then according to the page
The page after issue is back to terminal by face access request with the static resource after issue.Wherein, after issue
The new name of the static resource after issuing is inserted in the page code of the page.New name can be in page to be released
Splice obtaining when face is issued, or spliced what is obtained before static resource to be released is issued.
Specifically, by the filename and corresponding informative abstract of acquisition static resource to be updated;By static state to be updated
After the filename of resource, corresponding informative abstract and preset characters or character string are spliced, generation is treated more
The new name of new static resource.Terminal is entered by browser to the static resource after the page after renewal and renewal
Row parsing, renders the page after updating.As shown in fig. 7, the page after the renewal for showing in a browser,
In the page after wherein updating, in addition to the model that user delivers, also added heat and search list and Quick Response Code.
In one embodiment, the method also includes:Static resource after renewal is rolled back to quiet before updating
State resource;The page after renewal is rolled back to into the page before updating;Quote in the page before the update before updating
Static resource.
In the present embodiment, after completing to issue, if the page after the static resource and/or issue after issuing
Generation operation troubles, needs to carry out rollback in time.For example, by website or web application from after renewal
Version of the version rollback to before updating.When rollback is carried out, it is possible to use static state of the record with mapping relations
The file of resource and corresponding informative abstract, for example, it is possible to use mapped file carries out rollback.Due to adopting
Be non-cover type published method such that it is able to the static resource after renewal is rolled back to the static money before updating
Source, and the page after renewal is rolled back to into the page before updating.Can adopt what is provided in above-described embodiment
Mode, the static resource before being updated according to reference in the mapped file page before the update before updating.Thus, it is possible to
It is enough conveniently timely rollback to be carried out to the static resource and the page after renewal.
In one embodiment, as shown in Figure 8, there is provided a kind of webpage updating device, the device includes:
Static resource release module 802, informative abstract acquisition module 804, renamer module 806 and the page issue mould
Block 808, wherein:
Static resource release module 802, for obtaining static resource to be released and being issued, static state to be released
Resource includes static resource to be updated.
Informative abstract acquisition module 804, the filename for obtaining static resource to be updated is plucked with corresponding information
Will.
Renamer module 806, for being treated with corresponding informative abstract according to the filename of static resource to be updated
Updating static resource carries out renaming, obtains the new name of static resource to be updated.
Page issuing module 808, for the new name of static resource to be updated to be inserted into the page of the page to be released
In the code of face, and the page to be released after the new name of insertion is issued.
In one embodiment, as shown in figure 9, the device also includes:Acquisition module 810, computing module
812 and mapping block 814, wherein:
Acquisition module 810, for obtaining the filename of static resource to be released.
Computing module 812, for calculating the corresponding informative abstract of static resource to be released.
Mapping block 814, the mapping for setting up between the filename and informative abstract of static resource to be released is closed
System.
In one embodiment, renamer module 806 is used for the filename of static resource to be updated, correspondence
Informative abstract and after preset characters or preset characters string spliced, generate the new of static resource to be updated
Name.
In one embodiment, as shown in Figure 10, informative abstract acquisition module 804 includes:Comparing unit 804a
With extraction unit 804b, wherein:
Comparing unit 804a, for by the corresponding informative abstract of the static resource to be released with update before it is quiet
The corresponding informative abstract of state resource is compared;
Extraction unit 804b, extracts quiet before corresponding informative abstract and renewal in the static resource to be released
The inconsistent static resource of the corresponding informative abstract of state resource is the static resource to be updated, obtains what is extracted
The filename of the static resource to be updated and corresponding informative abstract.
In one embodiment, as shown in figure 11, the device also includes:First judge module 816 and first
Module 818 is returned, wherein:
First judge module 816, for obtaining the accessing page request of terminal transmission, judges whether to complete page
Issue in face.
First return module 818, if for complete the page issue, obtain issue after the page, according to send out
The page after cloth obtains the static resource after issuing, and the static resource after the page after issue and issue is returned
To terminal.
If the first return module 818 is additionally operable to page issue not yet completing, the page before issuing, root are obtained
The static resource before issuing is obtained according to the page before issue, by the static resource before the page before issue and issue
It is back to terminal.
In one embodiment, as shown in figure 12, there is provided a kind of webpage updating device, the device includes:
Second judge module 1202 and second returns module 1204, wherein:
Second judge module 1202, for obtaining the accessing page request of terminal transmission, judges whether to complete
The page is issued.
Second returns module 1204, if issuing for completing the page, obtains the page after issuing, according to
The page after issue obtains the static resource after issuing, and the static resource after the page after issue and issue is returned
It is back to terminal.Wherein, the new life of the static resource after issuing is inserted in the page code of the page after issue
Name.
In one embodiment, if the second return module 1204 is additionally operable to not complete page issue, obtain and send out
The page before cloth, according to before issue the page obtain issue before static resource, by the page before issue and send out
Static resource before cloth is back to terminal.
One of ordinary skill in the art will appreciate that all or part of flow process in above-described embodiment method is realized,
Computer program be can be by instruct the hardware of correlation to complete, described program can be stored in a computer
In read/write memory medium, such as in the embodiment of the present invention, the program can be stored in the storage of computer system and be situated between
In matter, and by least one of computer system computing device, to realize including such as above-mentioned each method
Embodiment flow process.Wherein, the storage medium can be magnetic disc, CD, read-only memory
(Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM)
Deng.
Each technical characteristic of embodiment described above can be combined arbitrarily, not right to make description succinct
The all possible combination of each technical characteristic in above-described embodiment is all described, as long as however, these skills
There is no contradiction in the combination of art feature, be all considered to be the scope of this specification record.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more concrete and detailed,
But can not therefore be construed as limiting the scope of the patent.It should be pointed out that for this area
For those of ordinary skill, without departing from the inventive concept of the premise, some deformations can also be made and changed
Enter, these belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended power
Profit requires to be defined.
Claims (14)
1. a kind of webpage update method, methods described includes:
Obtain static resource to be released and issued, the static resource to be released includes static money to be updated
Source;
Obtain the filename and corresponding informative abstract of static resource to be updated;
According to the filename of the static resource to be updated the static state to be updated is provided with corresponding informative abstract
Source carries out renaming, obtains the new name of the static resource to be updated;
The new name of the static resource to be updated is inserted in the page code of the page to be released, and will be inserted
Enter the page to be released after the new name to be issued.
2. method according to claim 1, it is characterised in that obtain static resource to be released described
And the step of issued before, also include:
Obtain the filename of static resource to be released;
Calculate the corresponding informative abstract of the static resource to be released;
The mapping relations set up between the filename and described information summary of the static resource to be released.
3. method according to claim 2, it is characterised in that acquisition static resource to be updated
The step of filename is with corresponding informative abstract, including:
By the corresponding informative abstract of the static resource to be released with update before the corresponding information of static resource pluck
Compare;
Extract the letter corresponding with the static resource before renewal of corresponding informative abstract in the static resource to be released
The inconsistent static resource of breath summary is the static resource to be updated, obtains the static state described to be updated extracted
The filename of resource and corresponding informative abstract.
4. method according to claim 1, it is characterised in that described according to the static money to be updated
The filename in source and corresponding informative abstract, to the static resource to be updated renaming is carried out, and obtains described
The step of new name of static resource to be updated, including:
By the filename of the static resource to be updated, corresponding informative abstract and preset characters or predetermined word
After symbol string is spliced, the new name of the static resource to be updated is generated.
5. method according to claim 1, it is characterised in that methods described also includes:
Obtain the accessing page request that terminal sends;
Judge whether to complete page issue, the page after issuing if so, then is obtained, after the issue
The page obtain issue after static resource, by the static resource after the page after the issue and the issue
It is back to the terminal;
Otherwise, the page before issuing is obtained, the static resource before issuing is obtained according to the page before the issue,
Static resource before the page before the issue and the issue is back to into the terminal.
6. a kind of webpage update method, methods described includes:
Obtain the accessing page request that terminal sends;
Judge whether to complete page issue, the page after issuing if so, then is obtained, after the issue
The page obtain issue after static resource, by the static resource after the page after the issue and the issue
It is back to the terminal;
Wherein, the new of the static resource after the issue is inserted in the page code of the page after the issue
Name.
7. method according to claim 6, it is characterised in that methods described also includes:If not completing
The page is issued, then obtain the page before issuing, and the static money before issuing is obtained according to the page before the issue
Source, by the static resource before the page before the issue and the issue terminal is back to.
8. a kind of webpage updating device, it is characterised in that described device includes:
Static resource release module, it is described to be released quiet for obtaining static resource to be released and being issued
State resource includes static resource to be updated;
Informative abstract acquisition module, for obtaining the filename and corresponding informative abstract of static resource to be updated;
Renamer module, for according to the filename of the static resource to be updated and corresponding informative abstract pair
The static resource to be updated carries out renaming, obtains the new name of the static resource to be updated;
Page issuing module, for the new name of the static resource to be updated to be inserted into into the page to be released
In page code, and the page to be released inserted after the new name is issued.
9. device according to claim 8, it is characterised in that described device also includes:
Acquisition module, for obtaining the filename of static resource to be released;
Computing module, for calculating the corresponding informative abstract of the static resource to be released;
Mapping block, for setting up between the filename and described information summary of the static resource to be released
Mapping relations.
10. device according to claim 9, it is characterised in that described information is made a summary acquisition module bag
Include:
Comparing unit, for by the corresponding informative abstract of the static resource to be released with update before static money
The corresponding informative abstract in source is compared;
Extraction unit, extracts corresponding informative abstract in the static resource to be released and provides with the static state before renewal
The inconsistent static resource of the corresponding informative abstract in source is the static resource to be updated, obtains the described of extraction
The filename of static resource to be updated and corresponding informative abstract.
11. devices according to claim 8, it is characterised in that the renamer module is used for institute
Stating filename, corresponding informative abstract and the preset characters or preset characters string of static resource to be updated is carried out
After splicing, the new name of the static resource to be updated is generated.
12. devices according to claim 8, it is characterised in that described device also includes:
First judge module, for obtaining the accessing page request of terminal transmission, judges whether to complete the page
Issue;
First returns module, if issuing for completing the page, the page after issuing is obtained, according to described
The page after issue obtains the static resource after issuing, by the page after the issue and the issue after it is quiet
State resource is back to the terminal;
If the first return module is additionally operable to page issue not yet completing, the page before issuing, root are obtained
The static resource before issuing is obtained according to the page before the issue, by the page before the issue and the issue
Front static resource is back to the terminal.
13. a kind of webpage updating devices, it is characterised in that described device includes:
Second judge module, for obtaining the accessing page request of terminal transmission, judges whether to complete the page
Issue;
Second returns module, if issuing for completing the page, the page after issuing is obtained, according to described
The page after issue obtains the static resource after issuing, by the page after the issue and the issue after it is quiet
State resource is back to the terminal;
Wherein, the new of the static resource after the issue is inserted in the page code of the page after the issue
Name.
14. devices according to claim 13, it is characterised in that the second return module is additionally operable to
If not completing the page to issue, the page before issuing is obtained, obtained according to the page before the issue before issuing
Static resource, the static resource before the page before the issue and the issue is back to into the terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510738131.4A CN106649395B (en) | 2015-11-03 | 2015-11-03 | Webpage updating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510738131.4A CN106649395B (en) | 2015-11-03 | 2015-11-03 | Webpage updating method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106649395A true CN106649395A (en) | 2017-05-10 |
CN106649395B CN106649395B (en) | 2021-05-25 |
Family
ID=58810509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510738131.4A Active CN106649395B (en) | 2015-11-03 | 2015-11-03 | Webpage updating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106649395B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273139A (en) * | 2017-07-05 | 2017-10-20 | 努比亚技术有限公司 | A kind of method for updating system, equipment and computer-readable recording medium |
CN107357890A (en) * | 2017-07-12 | 2017-11-17 | 腾讯科技(深圳)有限公司 | A kind of web page files processing method, apparatus and system and storage device |
CN107370791A (en) * | 2017-06-23 | 2017-11-21 | 微梦创科网络科技(中国)有限公司 | The method and system of filename in automatic synchronization renewal content distributing network |
CN107645422A (en) * | 2017-11-17 | 2018-01-30 | 武汉楚鼎信息技术有限公司 | A kind of website static resource update method and system and device |
CN107992557A (en) * | 2017-11-28 | 2018-05-04 | 平安养老保险股份有限公司 | Static resource update method, device, storage medium and computer equipment |
CN110059276A (en) * | 2019-03-12 | 2019-07-26 | 天津五八到家科技有限公司 | Method for updating pages, device, equipment and storage medium |
CN110058873A (en) * | 2019-03-12 | 2019-07-26 | 天津五八到家科技有限公司 | Application page update method, device, equipment and storage medium |
CN110727889A (en) * | 2018-06-28 | 2020-01-24 | 北京京东尚科信息技术有限公司 | Static webpage resource loading method, device, medium and electronic equipment |
CN110929194A (en) * | 2019-11-21 | 2020-03-27 | 山东鲁能软件技术有限公司 | Abstract algorithm-based static resource file cache control method and system |
CN112783539A (en) * | 2020-04-20 | 2021-05-11 | 招商证券股份有限公司 | Application updating method, system, terminal device and storage medium |
CN112883254A (en) * | 2021-03-23 | 2021-06-01 | 浙江网商银行股份有限公司 | Resource processing system, resource processing method and device |
CN113703807A (en) * | 2021-08-26 | 2021-11-26 | 上海德拓信息技术股份有限公司 | Method and system for detecting and updating static resource version in real time |
CN114117280A (en) * | 2021-11-30 | 2022-03-01 | 平安壹钱包电子商务有限公司 | Method, device, terminal device and storage medium for using static resources of pages |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070198630A1 (en) * | 2006-01-06 | 2007-08-23 | Lee Jacobson | Delivery of archived content to authorized users |
US20070250542A1 (en) * | 2001-12-18 | 2007-10-25 | International Business Machines, Corporation | Method and apparatus for editing a production data store by shadowing content |
CN101277472A (en) * | 2007-03-30 | 2008-10-01 | 华为技术有限公司 | Synchronization method, device and system for blog content |
CN101626371A (en) * | 2008-07-07 | 2010-01-13 | 华为技术有限公司 | Method and device for processing permit |
CN101697168A (en) * | 2009-10-22 | 2010-04-21 | 中国科学技术大学 | Method and system for dynamically managing metadata of distributed file system |
CN101980204A (en) * | 2010-11-04 | 2011-02-23 | 上海银杏界信息科技有限公司 | Static webpage automatic updating method |
CN102045372A (en) * | 2009-10-20 | 2011-05-04 | 上海及第熊软件科技有限公司 | Website content publication method and system for realizing remote staticizing |
CN102207945A (en) * | 2010-05-11 | 2011-10-05 | 天津海量信息技术有限公司 | Knowledge network-based text indexing system and method |
CN102801711A (en) * | 2012-07-10 | 2012-11-28 | 中国科学技术大学 | Autonomous controllable website safety defensive system based on hardware processing board |
CN103310160A (en) * | 2013-06-20 | 2013-09-18 | 北京神州绿盟信息安全科技股份有限公司 | Method, system and device for preventing webpage from being tampered with |
CN104021349A (en) * | 2014-04-03 | 2014-09-03 | 福建伊时代信息科技股份有限公司 | Network evidence beforehand preservation method and preservation device |
CN104092726A (en) * | 2014-06-09 | 2014-10-08 | 乐视网信息技术(北京)股份有限公司 | Automatic replacing method and apparatus of same-name file |
CN104899228A (en) * | 2014-03-07 | 2015-09-09 | 中国移动通信集团河北有限公司 | Method and device for publishing webpage resources |
CN104978194A (en) * | 2015-06-25 | 2015-10-14 | 北京京东尚科信息技术有限公司 | Web page front-end development method and apparatus |
-
2015
- 2015-11-03 CN CN201510738131.4A patent/CN106649395B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070250542A1 (en) * | 2001-12-18 | 2007-10-25 | International Business Machines, Corporation | Method and apparatus for editing a production data store by shadowing content |
US20070198630A1 (en) * | 2006-01-06 | 2007-08-23 | Lee Jacobson | Delivery of archived content to authorized users |
CN101277472A (en) * | 2007-03-30 | 2008-10-01 | 华为技术有限公司 | Synchronization method, device and system for blog content |
CN101626371A (en) * | 2008-07-07 | 2010-01-13 | 华为技术有限公司 | Method and device for processing permit |
CN102045372A (en) * | 2009-10-20 | 2011-05-04 | 上海及第熊软件科技有限公司 | Website content publication method and system for realizing remote staticizing |
CN101697168A (en) * | 2009-10-22 | 2010-04-21 | 中国科学技术大学 | Method and system for dynamically managing metadata of distributed file system |
CN102207945A (en) * | 2010-05-11 | 2011-10-05 | 天津海量信息技术有限公司 | Knowledge network-based text indexing system and method |
CN101980204A (en) * | 2010-11-04 | 2011-02-23 | 上海银杏界信息科技有限公司 | Static webpage automatic updating method |
CN102801711A (en) * | 2012-07-10 | 2012-11-28 | 中国科学技术大学 | Autonomous controllable website safety defensive system based on hardware processing board |
CN103310160A (en) * | 2013-06-20 | 2013-09-18 | 北京神州绿盟信息安全科技股份有限公司 | Method, system and device for preventing webpage from being tampered with |
CN104899228A (en) * | 2014-03-07 | 2015-09-09 | 中国移动通信集团河北有限公司 | Method and device for publishing webpage resources |
CN104021349A (en) * | 2014-04-03 | 2014-09-03 | 福建伊时代信息科技股份有限公司 | Network evidence beforehand preservation method and preservation device |
CN104092726A (en) * | 2014-06-09 | 2014-10-08 | 乐视网信息技术(北京)股份有限公司 | Automatic replacing method and apparatus of same-name file |
CN104978194A (en) * | 2015-06-25 | 2015-10-14 | 北京京东尚科信息技术有限公司 | Web page front-end development method and apparatus |
Non-Patent Citations (1)
Title |
---|
吴瑞阳等: "龙芯GS464E处理器核架构设计", 《中国科学: 信息科学》 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107370791A (en) * | 2017-06-23 | 2017-11-21 | 微梦创科网络科技(中国)有限公司 | The method and system of filename in automatic synchronization renewal content distributing network |
CN107273139A (en) * | 2017-07-05 | 2017-10-20 | 努比亚技术有限公司 | A kind of method for updating system, equipment and computer-readable recording medium |
CN107357890A (en) * | 2017-07-12 | 2017-11-17 | 腾讯科技(深圳)有限公司 | A kind of web page files processing method, apparatus and system and storage device |
CN107357890B (en) * | 2017-07-12 | 2023-03-24 | 腾讯科技(深圳)有限公司 | Webpage file processing method, device and system and storage equipment |
CN107645422A (en) * | 2017-11-17 | 2018-01-30 | 武汉楚鼎信息技术有限公司 | A kind of website static resource update method and system and device |
CN107992557A (en) * | 2017-11-28 | 2018-05-04 | 平安养老保险股份有限公司 | Static resource update method, device, storage medium and computer equipment |
CN110727889A (en) * | 2018-06-28 | 2020-01-24 | 北京京东尚科信息技术有限公司 | Static webpage resource loading method, device, medium and electronic equipment |
CN110727889B (en) * | 2018-06-28 | 2024-09-20 | 北京京东尚科信息技术有限公司 | Static webpage resource loading method and device, medium and electronic equipment |
CN110058873B (en) * | 2019-03-12 | 2021-09-17 | 天津五八到家科技有限公司 | Application page updating method, device, equipment and storage medium |
CN110059276A (en) * | 2019-03-12 | 2019-07-26 | 天津五八到家科技有限公司 | Method for updating pages, device, equipment and storage medium |
CN110058873A (en) * | 2019-03-12 | 2019-07-26 | 天津五八到家科技有限公司 | Application page update method, device, equipment and storage medium |
CN110929194A (en) * | 2019-11-21 | 2020-03-27 | 山东鲁能软件技术有限公司 | Abstract algorithm-based static resource file cache control method and system |
CN110929194B (en) * | 2019-11-21 | 2023-04-07 | 山东鲁软数字科技有限公司 | Abstract algorithm-based static resource file cache control method and system |
CN112783539A (en) * | 2020-04-20 | 2021-05-11 | 招商证券股份有限公司 | Application updating method, system, terminal device and storage medium |
CN112883254A (en) * | 2021-03-23 | 2021-06-01 | 浙江网商银行股份有限公司 | Resource processing system, resource processing method and device |
CN113703807A (en) * | 2021-08-26 | 2021-11-26 | 上海德拓信息技术股份有限公司 | Method and system for detecting and updating static resource version in real time |
CN113703807B (en) * | 2021-08-26 | 2023-12-15 | 上海德拓信息技术股份有限公司 | Method and system for real-time detection and update of static resource version |
CN114117280A (en) * | 2021-11-30 | 2022-03-01 | 平安壹钱包电子商务有限公司 | Method, device, terminal device and storage medium for using static resources of pages |
Also Published As
Publication number | Publication date |
---|---|
CN106649395B (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106649395A (en) | Webpage updating method and apparatus | |
US20110016461A1 (en) | Techniques to perform gradual upgrades | |
US10614167B2 (en) | Translation review workflow systems and methods | |
CN102109989A (en) | Method, device and system for controlling browser cache | |
CN108932332A (en) | The loading method and device of static resource | |
US20120011262A1 (en) | Method and System of Processing Cookies Across Domains | |
US8225192B2 (en) | Extensible cache-safe links to files in a web page | |
US20130191435A1 (en) | Client-Side Minimal Download and Simulated Page Navigation Features | |
CN107992557A (en) | Static resource update method, device, storage medium and computer equipment | |
CN104375808B (en) | interface display method and device | |
CN107038519B (en) | Method and system for bidirectional data synchronization between systems | |
CN103248524B (en) | Based on test data edition control method, the Apparatus and system of flexible test technology | |
US9892100B2 (en) | Verifying content of resources in markup language documents | |
CA2800723A1 (en) | Methods for utilizing a javascript emulator in a web content proxy server and devices thereof | |
CN101184105A (en) | Client appartus for updating data | |
US11663288B2 (en) | Just-in-time front end template generation using logical document object models | |
CN107025108B (en) | Exporting hierarchical data from a Source Code Management (SCM) system to a Product Lifecycle Management (PLM) system | |
CN108366058A (en) | Method, apparatus, equipment and the storage medium for preventing advertisement operators flow from kidnapping | |
CN107807937A (en) | A kind of website SEO processing methods, apparatus and system | |
CN105589959A (en) | Form processing method and form processing system | |
CN110737853B (en) | Multi-platform display static page data synchronization method and B2B system | |
WO2015062292A1 (en) | Page layout method and system | |
CN104915404A (en) | Method and device for accessing invalid website | |
US7865822B2 (en) | Method and apparatus for parallel validation of documents | |
CN106156291A (en) | The caching method of static resource and system thereof based on Localstroage |
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 |