web Token(enterprises.webTokens) 是否可以重复使用?

问题描述

https://developers.google.com/android/management/reference/rest/v1/enterprises.webTokens#resource:-webtoken

用于访问托管 Google Play iframe 的网络令牌。 这个网络令牌会在一段时间后过期还是我们可以存储令牌并使用它?

解决方法

当我们查看嵌入式 iframe 的响应头时,我们会看到以下字段:“expires”(过时)和“Cache-Control”(no-cache) .这意味着响应被认为是过时的,它应该只使用一次。

因此,iframe 将在不久的将来失效。

outdated iframe cache-control field

,

新生成的网络令牌在生成后最多可重复使用 4 小时。令牌过期后将无法再次使用,您应生成新的网络令牌。