Alternate long title: Cannot generate the current version of a page as PDF after generating the older version of the page using Download As PDF.
Steps to replicate the issue (include links if applicable):
- I created a new page on Commons: https://commons.wikimedia.org/wiki/Commons:Simple_media_reuse_guide/id
- I downloaded it as Pdf https://commons.wikimedia.org/w/index.php?title=Special:DownloadAsPdf&page=Commons%3ASimple_media_reuse_guide%2Fid&action=show-download-screen
- I made changes to the page
- I cannot download the latest version of the page as Pdf, I always got the same Pdf as the first one.
- I tried clearing the cache https://commons.wikimedia.org/wiki/Commons:Simple_media_reuse_guide/id?action=purge many times, but it didn't work. It always downloaded the oldid 736821866
The old version of the Pdf is cached in https://commons.wikimedia.org/api/rest_v1/page/pdf/Commons%3ASimple_media_reuse_guide%2Fid, and I don't know how long it would last. It could be hours, it could be years. There's no indication nor acknowledgement that the Pdf result may be from oldrevision, and users could be downloading the wrong version (different from what they saw on the page).
Worst case scenario, a vandal could insert vandalism, and generate the Pdf (first time; nobody else ever generate Pdf for that article), which contain his vandalism and could stay forever in Pdf form.
Users don't have control on how long the old version would be cached, and cannot purge the cached PDF to generate the newest version of the Pdf
What should have happened instead?:
There's a button to clear cache of the PDF
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Probably related to T46186, a ten year old bug.