Repository navigation
v0.0.22
This release cuts the number of files of the site and adds a cache in the browser (#46).
- The JSON records of the cards are in record packs in
/api/records/, with one line for each collection, and not in acards.jsonfile for each collection./api/records.jsongives the pack, the byte offset and the length of each collection. With the content at ed4337e, the tree went from 8,809 files to 6,222. - The link "JSON record" opens
/api/record/#<collection URL>. The page asks for the byte range of its line. The static assets of Cloudflare do not answer a range request, so the page keeps the whole pack in the Cache API, and the next record of the same pack needs no request. - A pack has the hash of its bytes in its name and is immutable for a year. The CSS and the scripts have the hash of the file in
?v=. search.jsonis kept inlocalStorageuntil the next deployment.- A service worker gets a page from the network first and uses the cached copy when the network fails or is slower than 3 seconds.
- The script fetches a page when the pointer rests on its link.
The site has no worker script, so each request is still a request for a static asset.