Offline & Sync Architecture

Technical details on how EdCon operates offline on your school local area network (LAN) and automatically syncs with the cloud.

1. Hybrid Local-Cloud Design

EdCon's architecture is offline-first by design. The entire suite of application features (from attendance and assignment grading to student chats) is hosted on a local school server. Devices inside the school connect to this local server over the local Wi-Fi network or Ethernet LAN.

2. Client-Side Service Worker

EdCon registers a robust, event-driven Service Worker (service-worker.js) on the student and teacher browsers. This guarantees application availability even if the local server momentarily drops offline.

Asset Caching

Static Asset Cache

The Service Worker caches structural HTML pages, stylesheets, images, and Javascript modules during the initial page load. Subsequent loads fetch directly from the device's cache, bypassing network requests completely.

Network Fallbacks

Request Interception & Offline Pages

If a network connection fails, the Service Worker intercepts the request and serves cached templates. If a page has not been cached, it renders the elegant offline fallback page (offline.html) prompting the user to check their LAN connection.

3. IndexedDB Sync Queue

To support offline transactions (such as writing chat messages, submitting files, or completing quizzes during network interruptions), EdCon utilizes an IndexedDB cache queue processor.

4. Media CDN Fallback Protection

To optimize local server storage and protect against server hardware failures, EdCon integrates a background media synchronization protocol.