Single page application upgrading method and apparatus

An application upgrade, single-page technology, applied in the field of Internet communication, can solve the problems of low efficiency of single-page application upgrade, waste of data traffic, slow transmission speed, etc.

Active Publication Date: 2017-07-07
ALIBABA (CHINA) CO LTD
View PDF7 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Since the version of the single-page application is updated frequently, each update may only change part of the data in the single-page application. When the above-mentioned related technologies upgrade the single-page application, the server must issue all the resource data of the latest version, which will waste A large amount of data traffic, and the transmission speed is very slow when the network environment is poor, resulting in very low upgrade efficiency for single-page applications

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Single page application upgrading method and apparatus
  • Single page application upgrading method and apparatus
  • Single page application upgrading method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0088] An embodiment of the present invention provides a method for upgrading a single-page application. A single-page application is an application with only one web page, such as web mail is a single-page application. The single-page application has the characteristics of rapid release and frequent update. When a new version of the single-page application is released, the single-page application can be upgraded through the method provided by the embodiment of the present invention.

[0089] Single-page applications are generally developed in the form of web app (web-based system or application) or hybrid app (mixed-mode mobile application). For a single-page application developed by using web app, the single-page application can be logged in through a browser client. However, a single-page application developed using a hybrid app has a corresponding single-page client on the terminal, and can log in to the single-page application through the single-page client. In the embo...

Embodiment 2

[0155] see figure 2 , an embodiment of the present invention provides a device for upgrading a single-page application, and the device is used to implement the method for upgrading a single-page application provided in Embodiment 1 above. Specifically include:

[0156] The sending module 201 is configured to send a data request corresponding to the single-page application to the server, where the data request includes the version number of the rendering script of the locally cached single-page application;

[0157] The receiving module 202 is used to receive the upgrade response information returned by the server according to the version number;

[0158] The upgrade module 203 is configured to upgrade the single page application according to the differential resource file, the rendering script of the locally cached single page application and the static resource when the upgrade response information includes the differential resource file.

[0159] The upgrading module 203 ...

Embodiment 3

[0170] see image 3 , the embodiment of the present invention provides a single page application upgrading device, the device is used to implement the single page application method provided in the first embodiment above. Specifically, the device includes:

[0171] The receiving module 301 is configured to receive a data request corresponding to the single-page application sent by the front-end, and the data request includes the version number of the rendering script of the single-page application cached by the front-end;

[0172] An acquisition module 302, configured to acquire the latest version number of the rendering script of the single-page application;

[0173] A generating module 303, configured to generate upgrade response information according to the latest version number and the version number included in the data request;

[0174] The sending module 304 is configured to send upgrade response information to the front end, so that the front end determines to cache ...

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

PUM

No PUM Login to view more

Abstract

The invention provides a single page application upgrading method and apparatus. The method comprises the steps of sending a data request corresponding to a single page application to a server, wherein the data request comprises a version number of a locally cached rendering script of the single page application; receiving upgrading response information returned by the server according to the version number; if the upgrading response information comprises a difference resource file, upgrading the single page application according to the difference resource file and the locally cached rendering script and static resources of the single page application. According to the method and the apparatus, the static resources and the rendering script of the single page application are locally cached in a front end; the difference resource file corresponding to the rendering script is obtained only from the server during each upgrading, and a data amount of the difference resource file is very small, so that the server only needs to issue the difference resource file during each upgrading, and data flow is greatly saved; and the transmission speed is high, so that the upgrading efficiency of the single page application is improved.

Description

technical field [0001] The present invention relates to the field of Internet communication, in particular, to a single-page application upgrading method and device. Background technique [0002] A single-page application is an application with only one web (Internet) page. The single-page application has the characteristics of rapid release. Generally, a version is released every few days or a week. When a new version of the single-page application is released, it is necessary to update the old version. version of the single-page application to be upgraded. [0003] Currently, a method for upgrading a single-page application is provided in related technologies, including: when a user logs in to a page of the single-page application, the front end sends the version number of the single-page application to the server. The server obtains the latest version number of the single-page application, compares whether the latest version number is the same as the version number sent ...

Claims

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
CPCG06F9/44578G06F9/44584
Inventor 吴亮郭艺强
Owner ALIBABA (CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products