The present disclosure relates to a method for downloading an application resource
package and an electronic device. The method applied to a
content distribution server comprises: in response to an initial download request initiated by a first application
client, returning a total
byte number of the application resource
package to the first application
client; in response to a fragment download request sent by the first application
client according to the total
byte number, detecting whether a first
byte interval requested by the fragment download request hits a second byte interval; in the case of a hit, pulling first fragment data from a source
station server and returning the first fragment data to the first application client, so that the first application client obtains a target application resource
package containing a current tracking identifier according to the first fragment data, and the first
application server establishes a first mapping relationship between a first client identifier and a second client identifier according to the current tracking identifier; wherein the first fragment data is obtained by
rewriting data corresponding to the first byte interval of the application resource package according to the current tracking identifier by the source
station server.