Page MenuHomePhabricator

New submitted Chinese article description does not show up immediately in mobile-html endpoint
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Submit a Chinese article description, for example, submit 台灣女子足球教練 for Chinese (Taiwan) in Wikidata that is associated with this article
  • After the article description is submitted, open https://zh.wikipedia.org/api/rest_v1/page/mobile-html/周台英 without having the Accept-Language header, you will get the default 臺灣女子足球教練
  • Apply Accept-Language: zh-tw, you will still get the default article description for Chinese, instead of 台灣女子足球教練 for Chinese (Taiwan).

What happens?:
The mobile-html endpoint does not get the newly submitted article description correctly, because the content is cached with the Accept-Language header.

What should have happened instead?:
When the user manually refreshes the content, the newly submitted article description from Wikidata should appear.

Other information (browser name/version, screenshots, etc.):
If I put an extra parameter, for example: t=1, to avoid the cache, the article description will appear correctly
https://zh.wikipedia.org/api/rest_v1/page/mobile-html/%E5%91%A8%E5%8F%B0%E8%8B%B1?t=1