simonmcmanus / speclate

spec objects for sizlate that can render at build, on the server or client.
MIT License
3 stars 1 forks source link

Per page Caching strategies #50

Open simonmcmanus opened 7 years ago

simonmcmanus commented 7 years ago

Current each page has the same caching strategy.

Its tries to connect to the network first to fetch the latest spec and then renders it. If the network fails it falls back to the data stored in the service worker.

This makes sense for the lnug homepage as it changes frequently, but does not make sense for the code of conduct.

it should be possible to specify for each page what caching strategy they should use. Some example include:

note: this will apply to the data requests initially.