An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Simple offline blog

A simple offline blog, using ServiceWorker.

![Demo](demo.gif)

## Installation

```
npm install
npm start
```

## Architecture
* Server serves a shell. That is, a wrapper for the content.
* Shell contains logic for fetching and rendering content

There 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