Background
Story: As a data conscious users, I want the ability to know the size of my PDF prior to download, so that I know if I have space for it in my phone.
Based on the work from T163472: [EPIC] Provide a way to download articles in PDF on the mobile website, we want the ability to render a PDF, determine its size, and display the size to the user prior to allowing the user to download the pdf.
Acceptance Criteria
Answer the following questions:
- Is there storage space for temporarily storing PDFs
In Cassandra, yes! See T177219#3991177.
- If so, how much? Does it have any limit?
Per T177219#3991177, since this is a low-traffic service, there should be enough space in Cassandra to temporarily store rendered PDFs.
- What is the most efficient timespan to keep the PDFs for? (a day, until use session completes, something else?)
- How would we go about implementing this?