Closed
Bug 1351481
Opened 8 years ago
Closed 8 years ago
Return 304 from /account/devices if device list on the client is current
Categories
(Cloud Services :: Server: Firefox Accounts, enhancement)
Cloud Services
Server: Firefox Accounts
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: Grisha, Unassigned)
References
Details
In Bug 1351104 we're going to start fetching the list of FxA devices much more frequently on Android clients, and we're planning to expose "refresh devices list" functionality more broadly in the UI. Similar changes are likely to happen on other clients.
It would be great if we could short-circuit this somehow if our cached device list is current. Adding an ETag or timestamp-driven "If-Modified-Since" conditional request support seems like a good way to achieve this.
This would:
- reduce server load
- reduce bandwidth and resource use on clients, especially important for mobile clients
- make for a snappier UX in most uses of "pull-to-refresh" or similar user-facing refresh functionality
Comment 1•8 years ago
|
||
This is a good idea. If we implement the ETag/If-Modified-Since as-is we'll see reduced data sent to the client which is good. If we add a caching layer that stores the ETag/If-Modified-Since/profile and short-circuits the DB work then we'd also see decreased latency as well.
Comment 2•8 years ago
|
||
Filed on Github for more visibility: mozilla/fxa-auth-server#1803
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•