skip to content

As frontend lead for a school district's gradebook, timetable and parent-portal web apps on shared classroom laptops, what offline-data policy would you set, and who owns it?

level: principalimportance: should knowfreq 24%

answer

  1. classify data, then map tiers to stores
  2. shared device is the default assumption
  3. one wipe, owned once
  4. the domain layout sets the blast radius
  5. declared stores, tested on every release

basics

~20 s

Classify data into tiers fixing where each may live and when it is wiped, assume shared devices, and give one team the shared queue and wipe. The data-protection owner owns the tiers; app teams declare resources against them.

solid answer

~50 s

I'd start from a short classification the district's data-protection owner signs: app assets persist freely; class data such as rosters and photos may persist only for the signed-in teacher, bounded to today on shared devices; unsent work persists until confirmed; and sensitive data, parent messages and safeguarding notes, never touches the disk. Shared device is the default; a personal device is an explicit opt-in. A platform team owns one queue, one sign-out wipe and the tests that prove it, so no app writes its own. Each app team declares every resource it stores, with a tier, and a storage wrapper refuses undeclared ones. The domain layout is part of the policy: apps on one origin share storage, and a sign-out header's cookies directive reaches every subdomain, so single sign-out is a deliberate choice. Exceptions need the owner's sign-off and a review date.

go deeper

for a junior

Recall that data stored by a web app stays on the device after the tab closes, which matters when many people share one laptop.

for a middle

Explain how origins scope storage, and why one app's sign-out can affect or miss another app's data.

for a senior

Design the shared queue, wipe and tests so every app inherits them, and show the domain layout's effect on sign-out.

for a principal

Own the split: privacy decides the tiers, a platform team owns the mechanism, app teams declare resources, and exceptions carry sign-off and a review date.

## The decision A school district runs several web apps, a gradebook, a timetable and a parent portal, on the same classroom laptops. Each app's team could design its own offline storage; the result would be three wipes, three definitions of "private", and a sign-out in one app that leaves another's data behind. An **offline-data policy** is the district-wide rule set for what may be stored in the browser, where, for whom, and when it is removed. The open questions are what the tiers are and who owns each part. ## Tiers fix where data may live | Tier | Examples | May persist? | Shared device | Wiped | |---|---|---|---|---| | App assets | Shell, icons, grading scales | Yes | Yes | On release | | Class data | Timetable, rosters, photos, grade history | Signed-in teacher only | Today only | Sign-out, idle, invalid session | | Unsent work | Queued marks and grades | Until confirmed | Yes | After send; sign-out only by explicit discard | | Sensitive | Parent messages, safeguarding and medical notes | Never | Never | Nothing to wipe; served `no-store` | Two defaults carry most of the weight: - **Shared device by default.** A teacher opts in to "my own device", which unlocks a longer window and a request for persistent storage; school-managed laptops never offer it. - **Never-persist is a tier, not an afterthought.** Some data is better unavailable offline than present on a laptop a pupil may open next. ## The domain layout is a policy decision Browser storage, locks and most clearing are scoped to an **origin** (scheme, host and port). That makes the hosting layout part of the privacy design: - Apps on **one origin** share IndexedDB, Cache Storage and Web Locks; one app's wipe can delete another's queue unless names are coordinated. - Apps on **separate origins** have separate storage, so each needs its own wipe, and a district-wide sign-out must reach all of them. - `Clear-Site-Data: "cookies"` reaches the **whole registered domain, including subdomains**, so one app's sign-out signs the teacher out of sibling apps on that domain. On shared laptops that is often what you want, but it must be chosen, not discovered. ## Who owns what 1. **The data-protection owner** owns the tier definitions and approves any resource placed in the class-data or sensitive tiers. This is a privacy judgement about children's data, not an engineering preference. 2. **A platform team** owns the shared offline code: the write queue, the sign-out and idle wipe, the start-up session check, lock and database naming, and the end-to-end wipe tests. One implementation means one place to fix. 3. **Each app team** owns its per-resource table: every stored resource, its tier, strategy and cache key, kept in the repository and reviewed when it changes. ## Enforcement that does not depend on memory - A **storage wrapper** from the platform team accepts only declared resources; writing an undeclared one fails in development. - The **wipe test** runs for every app on every release: sign in, work offline, sign out, enumerate every store, fail on any personal record. - **Exceptions** carry the owner's sign-off and a review date, recorded next to the declaration. ## Rolling it out to apps already in use 1. **Inventory** every store each live app writes today, by reading the code and by enumerating storage on a test device. 2. **Classify** each against the tiers; anything sensitive already persisted is the first fix. 3. **Move writes behind the wrapper**, one app at a time, so new code cannot bypass it. 4. **Bump the wipe version** so every device deletes the legacy stores once on its next start, rather than waiting for each teacher to sign out. ## The trade-offs - **Stricter tiers** protect pupils but cost offline capability: a cover teacher on a shared laptop gets today's classes only. - **A shared platform** gives consistency but couples release schedules; app teams wait for the platform team's fixes. - **One origin** makes sign-out simple but merges every app's storage budget and risk; separate origins isolate them at the cost of a coordinated sign-out. There is no single right answer for every district; the policy's job is to make each of these choices once, explicitly, with an owner.

  • An app team wants to cache parent messages for a teacher's own phone. How does the policy handle it?
    Sensitive data is never persisted in any tier, so the request is an exception to the classification, not a team decision. The data-protection owner weighs it: perhaps allowed only on devices registered as personal, encrypted, with a short retention and a wipe test. If granted, it is recorded with a review date next to the app's declaration.
  • How do you know a new release didn't add an unwiped store?
    Two checks catch it. The storage wrapper refuses undeclared resources, so an ad-hoc write fails before it ships, and the end-to-end wipe test enumerates every IndexedDB database, cache and Web Storage key after sign-out on every release, failing on anything personal, including stores the wrapper never saw.

  • Let each app team decide what it stores; it knows its own data.
  • Treat every device as personal unless the school says otherwise.
  • A sign-out only needs to clear its own app, whatever the domain layout.
  • Request persistent storage on every laptop so unsent work is never evicted.
  • Write the policy on a wiki page and trust code review to enforce it.