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
- Exam format, question types and command words (46)
- Year 11: Programming Fundamentals (69)
- Year 11: The Object-Oriented Paradigm (33)
- Year 11: Programming Mechatronics (29)
- Year 12: Secure Software Architecture (57)
- Year 12: Programming for the Web (59)
- Year 12: Software Automation (35)
- Year 12: The Software Engineering Project (47)
- Diagrams and modelling tools (18)
- Python, SQL, pseudocode and CSS patterns (33)
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.
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
- 2025 HSC Q16a (3 marks): Progressive web apps Programming for the Web (Part A) · 3 marks
How to use it
A model sentence
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
- 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.
Go deeper
- Flashcard: Service worker in Programming for the Web (Year 12) · study that set
- Memorise: SQL vs ORM
- Key terms bank entry: Service worker
- Notes: Design, develop and implement a progressive web app (PWA), including the application of… (Programming for the Web (Year 12))
- Notes: Applications of web programming: interactive websites, e-commerce, PWAs (Programming for the Web (Year 12))
- Notes: Browser influence and developer tools (Programming for the Web (Year 12))
- Full term page: every question, note and marking comment for Service worker
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.