[英]Problems when update AMP cache
根據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>
應生成表格。 它使用問號?
用於分隔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…
您可以在 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…
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.