根据更新AMP缓存,一个包含in的URL
https://example-com.<cache.updateCacheApiDomainSuffix>/update-cache/c/s/example.com/article?amp_action=flush&_ts=<ts_val>&_url_signature=<sig_val>
应该生成表单。它使用问号?符号分隔example.com/article?amp_action=后面的路径和参数。
现在我想更新一个网址
https://m.discuss.com.hk/amp_viewthread.php?tid=24025060. 它在URL末尾有一个问号。因此,如何在这里构造URL?
我是否应该将其生成为:
…update-cache/c/s/m.discuss.com.hk/amp_viewthread.php?tid=24025060&_action=flush…或者类似于:
…update-cache/c/s/m.discuss.com.hk/amp_viewthread.php%3ftid=24025060?amp_action=flush…发布于 2019-12-16 10:47:58
可以在AMP URL中使用URL查询字符串参数,请参阅https://developers.google.com/amp/cache/overview#query-parameter-example
您应该能够将原始查询参数与更新缓存参数混合在一起。查看github讨论这里
所以你的更新网址是
…update-cache/c/s/m.discuss.com.hk/amp_viewthread.php?tid=24025060&_action=flush…https://stackoverflow.com/questions/59352830
复制相似问题