Amp html 更新AMP缓存时出现问题
根据,在Amp html 更新AMP缓存时出现问题,amp-html,Amp Html,根据,在 https://example-com./update-cache/c/s/example.com/article?amp_action=flush&_ts=&_url_signature= 应生成表单。它使用问号?符号分隔example.com/article?amp_action= 现在我想更新一个url https://m.discuss.com.hk/amp_viewthread.php?tid=24025060. 它在URL的末尾有一个问号。因此,如何在这里构
https://example-com./update-cache/c/s/example.com/article?amp_action=flush&_ts=&_url_signature=
应生成表单。它使用问号
?
符号分隔example.com/article?amp_action=
现在我想更新一个url
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…
可以在AMP URL中使用URL查询字符串参数,请参阅 您应该能够将原始查询参数与更新缓存参数混合使用。查看github讨论 因此,您的更新url将是
…update-cache/c/s/m.discuss.com.hk/amp_viewthread.php?tid=24025060&_action=flush…
非常感谢!我认为这是一个正确的解决方案,现在效果很好。