Automattic / liveblog

Liveblogging done right. Using WordPress.

Home Page:https://wordpress.org/plugins/liveblog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement - replace JSON endpoint with static files

rogertheriault opened this issue · comments

Instead of having an endpoint that might be requested multiple times for the same info, particularly for the interim updates, we could instead create a few JSON static files on the filesystem or a file service that contain a list of all entries, and contain all entries.

These only need to be updated when there's a content change.

The only blocker on implementing this is they'd need to be given header meta (e.g. cache-control) to control the browser and/or proxy's cache TTL, so they could be updated without having caching issues between the browser and the file service.

This is mainly an idea placeholder, details would need to be fleshed out.