TK Study

Software Engineering › Learn step by step › Y12 Programming for the Web

Item 291 of 426 · Year 12: Programming for the Web, 57 of 59

Service worker

Code pattern Key terms bank

Jump to a topic
  1. Exam format, question types and command words (46)
  2. Year 11: Programming Fundamentals (69)
  3. Year 11: The Object-Oriented Paradigm (33)
  4. Year 11: Programming Mechatronics (29)
  5. Year 12: Secure Software Architecture (57)
  6. Year 12: Programming for the Web (59)
  7. Year 12: Software Automation (35)
  8. Year 12: The Software Engineering Project (47)
  9. Diagrams and modelling tools (18)
  10. Python, SQL, pseudocode and CSS patterns (33)

See every item in the sequence

Definition

A background script in a PWA that caches files and intercepts network requests so the app works offline.

Example: Cache the app shell so it loads without internet.

Found in: sample exam and familiarisation guidelines, school notes.

Short version to memorise (key terms bank)

Background script that caches and intercepts requests.

Where you'll use it in the test

Syllabus area: Y12 Programming for the Web.

Question types it can appear in

  • Multiple choice: Pick the option that matches the definition or example.
  • Short answer: Define, outline or explain it and tie it to the scenario.

Where it has appeared in the paper

Programming for the Web (Part A). Part letters follow each paper’s own layout.

Related past questions

How to use it

A model sentence

General advice, built from the definition and example above

Code pattern: “A background script in a PWA that caches files and intercepts network requests so the app works offline.” Then apply it: Cache the app shell so it loads without internet.

In a short answer, give the definition in your own words first, then tie it to the situation in the question. Do not copy the example above unless it fits the scenario.

Command words used with it

From the linked past questions
  • Compare: Show how things are similar or different. (2025 HSC Q16a (3 marks): Progressive web apps)

Official worked answer

2025 HSC Q16a (3 marks): Progressive web apps (3 marks): official criteria and sample answer

Criteria

3: Compares the use of a PWA with an interactive website for the weather app. 2: Outlines features of a PWA and/or interactive website. 1: Identifies a feature of a PWA or an interactive website.

Sample answer

Both PWAs and interactive websites are platform-independent, allowing users to access the app on any device with a browser. PWAs can pre-cache updates to enable offline updates when a stable internet connection is not available but may not provide real time updates for the most recent changes to weather or warnings. Meanwhile, interactive websites require a constant internet connection to provide any updates.

Open the question page

Go deeper

Check yourself

Write or say the “Service worker” pattern from memory: the syntax and what it does.

Reveal the answer

A background script in a PWA that caches files and intercepts network requests so the app works offline.

Example: Cache the app shell so it loads without internet.

Could be tested as: Multiple choice, Short answer.