https://github.com/oliverjash/simple-offline-blog
A simple offline blog, using ServiceWorker
https://github.com/oliverjash/simple-offline-blog
demo offline serviceworker
Last synced: 3 months ago
JSON representation
A simple offline blog, using ServiceWorker
- Host: GitHub
- URL: https://github.com/oliverjash/simple-offline-blog
- Owner: OliverJAsh
- Created: 2015-09-12T12:20:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-18T12:54:50.000Z (almost 8 years ago)
- Last Synced: 2025-01-16T21:51:08.674Z (5 months ago)
- Topics: demo, offline, serviceworker
- Language: HTML
- Homepage:
- Size: 672 KB
- Stars: 31
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple offline blog
A simple offline blog, using ServiceWorker.

## Installation
```
npm install
npm start
```## Architecture
* Server serves a shell. That is, a wrapper for the content.
* Shell contains logic for fetching and rendering contentThere is also a branch with shared rendering. See https://github.com/OliverJAsh/simple-offline-blog/pull/1.
## Fetch and cache rules
* Serve from cache or else network. When serving from cache, fetch the newest
content from the network to update the content on screen and then revalidate
the cache.
* Home page content is always cached
* Article page content is optionally cached