Improve initial load performance for dashiki dashboards
Open, NormalPublic

Description

possible solution: Mediawiki storage package should request files with 1 hour ttl

There is no need to request dashboard configuration everytime we load dashiki, just like the sitematrix data the configuration requested from meta could have a TTL of 3600. Since we rely on mediawikistorage bower paclkage to do this retrieval, the caching default should be there.

Nuria created this task.Aug 8 2016, 3:48 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 8 2016, 3:48 PM
Nuria renamed this task from Mediawiki storage package shoudl request files with 1 hour ttl to Mediawiki storage package should request files with 1 hour ttl .Aug 8 2016, 3:49 PM
Nuria added a project: Analytics.
Milimetric moved this task from Incoming to Backlog (Later) on the Analytics board.Aug 8 2016, 4:40 PM
Milimetric triaged this task as Normal priority.
Milimetric renamed this task from Mediawiki storage package should request files with 1 hour ttl to Improve initial load performance for dashiki dashboards.Aug 8 2016, 4:46 PM
Milimetric updated the task description. (Show Details)
Milimetric assigned this task to Nuria.
Nuria moved this task from Next Up to In Progress on the Analytics-Kanban board.Nov 30 2016, 8:25 PM
Nuria added a comment.EditedNov 30 2016, 8:42 PM

Looks to me resources served from analytics.wikimedia.org are fresh everytime. We do not seem to have cache headers: https://analytics.wikimedia.org/dashboards/browsers/#all-sites-by-os

Edit:

Wait, no , there are ETags.

Nuria added a comment.EditedNov 30 2016, 8:45 PM

The requests to config files could have a 1hr ttl unless we are running in developer mode. Thus far we are requestingting them with TTL:0

An example of a request with an hour TTL (maxAge=3600): https://meta.wikimedia.org/w/api.php?action=query&prop=revisions&format=json&rvprop=content&rawcontinue=1&titles=Config:SimpleRequestBreakdowns&maxage=3600&callback=jQuery311027614085003766076_1480538457371&_=1480538457372

Nuria added a comment.Dec 1 2016, 7:56 PM

We are about to drop a json extension that would change how do we query for the configuration:

Example: https://commons.wikimedia.beta.wmflabs.org/w/api.php?action=jsondata&formatversion=2&format=jsonfm&title=Sample.tab

By default this requests come with cache-control hedaers. Sending ticket back to paused.

Nuria moved this task from In Progress to Paused on the Analytics-Kanban board.Dec 1 2016, 7:56 PM
Nuria removed Nuria as the assignee of this task.Jan 30 2017, 4:52 PM
Nuria edited projects, added Analytics; removed Analytics-Kanban.
Nuria moved this task from Backlog (Later) to Deprioritized on the Analytics board.Feb 9 2017, 4:57 PM