Pra-ambil resource dari server asal ke node L2. Pengguna dapat langsung mengakses cache pada kunjungan pertama mereka. Dengan cara ini, beban kerja pada server asal dapat dikurangi.
Deskripsi operasi
This operation is available only in the China (Shanghai) region.
You can submit a maximum of 500 requests to prefetch resources based on URLs each day by using an Alibaba Cloud account. You cannot prefetch resources based on directories.
You can call the RefreshVodObjectCaches operation to refresh content and the PreloadVodObjectCaches operation to prefetch content.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:PreloadVodObjectCaches |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ObjectPath |
string |
Yes |
URL file yang akan di-pra-ambil. Pisahkan beberapa URL dengan jeda baris (\n atau \r\n). |
vod.test.com/test.txt |
| Area |
string |
No |
Wilayah akselerasi tempat Anda ingin melakukan pra-ambil konten. Jika Anda tidak menentukan wilayah, nilai overseas akan digunakan.
|
domestic |
| L2Preload |
boolean |
No |
Apakah akan melakukan pra-ambil konten ke POP. Nilai valid:
|
true |
| WithHeader |
string |
No |
Header Kustom untuk pra-ambil dalam format JSON. |
{ "Accept-Encoding": [ "gzip, deflate, br" ] } |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PreloadTaskId |
string |
The ID of the prefetch task. Separate multiple task IDs with commas (,). |
9524**** |
| RequestId |
string |
The ID of the request. |
E5BD4B50-7A02-493A-*****-97B9024B4135 |
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SingleRequest.OverLimit | A maximum of 1000 URLs are supported for each request. | |
| 400 | QuotaExceeded.Preload | Your refresh attempts have exceeded the daily limit. | |
| 400 | InvalidObjectPath.Malformed | The specified ObjectPath is invalid. | The ObjectPath parameter is invalid. |
| 400 | InvalidExtensiveDomain.ValueNotSupported | The specified ExtensiveDomain is not supported. | |
| 400 | PreloadQueueFull | The warming queue is full; please try again later. | |
| 400 | InvalidCustomHeader | Parse preload header failed. | Failed to parse preload header. |
| 404 | InvalidDomain.Offline | The domain provided is offline. | |
| 404 | InvalidDomain.NotFound | The domain provided does not belong to you. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.