[英]Problems when update AMP cache
According to the Update AMP Cache , a URL with in根据Update AMP Cache ,带有 in
https://example-com.<cache.updateCacheApiDomainSuffix>/update-cache/c/s/example.com/article?amp_action=flush&_ts=<ts_val>&_url_signature=<sig_val>
form should be generated.应生成表格。 It uses a question mark
?
它使用问号
?
symbol to separate the path and parameter behind example.com/article?amp_action=
用于分隔
example.com/article?amp_action=
后面的路径和参数的符号
Now I want to update a url现在我想更新一个网址
https://m.discuss.com.hk/amp_viewthread.php?tid=24025060.
It has a question mark at the end of the URL.它在 URL 末尾有一个问号。 Thus, how to construct the URL here?
那么,如何构造这里的URL呢?
Should I generate it as:我应该将其生成为:
…update-cache/c/s/m.discuss.com.hk/amp_viewthread.php?tid=24025060&_action=flush…
Or something like:或类似的东西:
…update-cache/c/s/m.discuss.com.hk/amp_viewthread.php%3ftid=24025060?amp_action=flush…
You can use URL query string parameters in the AMP URL, see https://developers.google.com/amp/cache/overview#query-parameter-example您可以在 AMP URL 中使用 URL 查询字符串参数,请参阅https://developers.google.com/amp/cache/overview#query-parameter-example
You should be able to mix your original query parameters in with the update-cache parameters.您应该能够将原始查询参数与更新缓存参数混合使用。 Check the github discussion here
在此处查看 github 讨论
So your update url will be所以你的更新网址将是
…update-cache/c/s/m.discuss.com.hk/amp_viewthread.php?tid=24025060&_action=flush…
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.