Monitor offline package behavior at the HTTP layer (2): Update a specific offline package

更新时间:
复制 MD 格式

When a developer publishes a new version of an offline package on the publishing platform, the client pulls the update package. The basic procedure is as follows:

  1. The client sends a request to the MDS (Meta Data Service) server. The request includes the ID of the target H5 app and its local version number.

  2. The server returns update information for the offline package, if available.

  3. The client downloads the amr update file using the incremental package address and download configuration parameters from the response. If no incremental package address is available, the client downloads the full package using the Package URL.

Procedure

  1. The client requests information about the offline package.请求离线包信息

  2. The server returns information about the offline package update.返回离线包信息

  3. The client downloads the corresponding amr file using the incremental package URL from the previous step.现在arm文件

Note

Sample log for an offline package update: 2-offline-package-update-example.chls.zip