Page MenuHomePhabricator

mobile-html - common resource files repeatedly downloaded during large sync
Open, LowPublicBUG REPORT

Description

How many times were you able to reproduce it?

Every time

Steps to reproduce

  1. Add many articles (100 or so) via Reading List danger zone debug screen.
  2. Charles the traffic and filter calls by the shared mobile-html resource "javascript"

Expected results

The JS file is only downloaded once.

Actual results

JS file is downloaded over and over again. This is wasteful for many articles. I would expect URLCache to kick in and return a cached version, even if it isn't permanently saved via a Saved Article.

Screenshots

Environments observed

App version: 6.6.0
OS versions: 13.3.1
Device model: iPhone 7
Device language: EN

Event Timeline

I think it might be worth holding off on investigating this until the mobile-html endpoints are ready in Prod. Etag seems to work differently between labs and prod so that could affect results.

Update - I do still see Javascript files downloaded over and over again in Prod, but now it at least returns 304 because the ETag is working properly. We still should investigate.

LGoto triaged this task as Medium priority.Mar 23 2020, 6:42 PM
LGoto moved this task from Needs Triage to Bug Backlog on the Wikipedia-iOS-App-Backlog board.
LGoto lowered the priority of this task from Medium to Low.Jun 30 2020, 8:18 PM
LGoto moved this task from Bug Backlog to Engineering Backlog on the Wikipedia-iOS-App-Backlog board.