# I am the Watcher. I am your guide through this vast new twtiverse.
#
# Usage:
# https://watcher.sour.is/api/plain/users View list of users and latest twt date.
# https://watcher.sour.is/api/plain/twt View all twts.
# https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri.
# https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject.
#
# Options:
# uri Filter to show a specific users twts.
# offset Start index for quey.
# limit Count of items to return (going back in time).
#
# twt range = 1 1
# self = https://watcher.sour.is/conv/foaxsga
使用 Service Worker 讓首頁秒開**
我們可以用 Stale-While-Revalidate 加速頁面訪問,策略分 3 步在收到頁面請求時首先檢查緩存,如果命中緩存就直接從緩存中返回給用戶 將緩存返回用戶的同時,在後臺異步發起網絡請求,嘗試獲取資源的最新版本 獲取成功後更新緩存,下次使用 而這一切的幕後功臣便是 Service Worker,作爲一個後臺代理在網絡與緩存之間搭建橋樑,提供了豐富的緩存管理和資源控制能 ⌘ Read more