One Calendar is a privacy-first calendar web app built with Next.js. It has modern security features, including e2ee, password-protected sharing, and self-destructing share links ๐Ÿ“… calendar.xyehr.cn
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: prevent service worker from caching API responses

+5 -1
+5 -1
public/sw.js
··· 1 - const CACHE_NAME = "one-calendar-shell-v1"; 1 + const CACHE_NAME = "one-calendar-shell-v2"; 2 2 const OFFLINE_URLS = ["/app", "/icon.svg"]; 3 3 4 4 self.addEventListener("install", (event) => { ··· 29 29 30 30 const requestUrl = new URL(event.request.url); 31 31 if (requestUrl.protocol !== "http:" && requestUrl.protocol !== "https:") { 32 + return; 33 + } 34 + if (requestUrl.pathname.startsWith("/api/")) { 35 + event.respondWith(fetch(event.request)); 32 36 return; 33 37 } 34 38