跳转到内容

Cache

清除云端浏览器缓存。

清除云端缓存

Request

清除浏览器的云端缓存。

  • 前置条件:用 envId 或 uniqueId 指定浏览器,至少选择一类缓存,且该浏览器不能处于转移中。本地客户端缓存不受影响。
  • 副作用:清除常规类会移除云端 LocalStorage、IndexedDB 和扩展数据,解除该浏览器的扩展绑定,并重置 profile 加密类型;清除 Cookie 会重置 Cookie 加密类型。两项变更都会持久化,因此加密浏览器在被清除的那一类上会变成未加密。
  • 完成信号:同步——云存储服务已受理并返回后才响应。没有任务 ID 可轮询。

已记录的业务错误码:19039, 19149。 各错误码的含义见 Error Codes。任何接口还可能返回通用错误码。

Security
OpenApiBearer
Bodyapplication/jsonrequired
envIdstring(EnvironmentId)^[1-9]\d*$

浏览器 ID。与 uniqueId 二选一。

Example:"1800000000000001"
uniqueIdinteger, (int32), >= 1

浏览器序号。与 envId 二选一。

Example:1001
othersboolean

是否清除其他云端缓存数据。

Example:true
cookieboolean

是否清除云端 Cookie。

Example:false
curl -i -X POST \
  https://api.morelogin.com/env/cache/cleanCloud \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "envId": "1800000000000001",
    "others": true,
    "cookie": false
  }'

Responses

Success

Bodyapplication/json
codeintegerrequired

Return result code. 0 means success; other codes indicate exceptions.

Example:0
msgstring or nullrequired

Error message. Usually null on success.

Example:null
requestIdstring

Operation request ID. This field may be present when the request passes through the API gateway.

Example:"1d4f3ea968664593860b94b35d4ebf5e"
datanull
Example:null
Response
{ "code": 0, "msg": null, "requestId": "1d4f3ea968664593860b94b35d4ebf5e", "data": null }