add schudual function

This commit is contained in:
Bkk1234 committed 2026-09-25 04:20:16 +07:00
1 parent d198430310
commit 88311326e6
252 files changed
+4803 -579

No files matched your search

+9 -1
View File
@@ -13,7 +13,7 @@
- ขั้นตอนอัปเดต: ดู AGENTS.md หัวข้อ PWA
============================================================ */
const VERSION = "2026.09.22.1"; // ← bump ทุกครั้งที่แก้ SW เอง
const VERSION = "2026.09.22.5"; // ← bump ทุกครั้งที่แก้ SW เอง
const CACHE = `at-transit-${VERSION}`;
const PRECACHE = [
@@ -43,6 +43,13 @@ const PRECACHE = [
"./partials/about.init.js",
"./partials/blog.html",
"./partials/blog.init.js",
"./partials/busDetail.init.js",
"./partials/checkSchedule.init.js",
"./vendor/leaflet/leaflet.js",
"./vendor/leaflet/leaflet.css",
"./map.js",
"./map.css",
"./stops/chatuchak-minibus-terminal.html",
"./partials/icons-sprite.svg",
"../.image/icons/minibus-512x512.png",
];
@@ -106,6 +113,7 @@ self.addEventListener("fetch", (event) => {
url.pathname.endsWith(".js") ||
url.pathname.endsWith(".html") ||
url.pathname.endsWith(".json") ||
url.pathname.endsWith(".geojson") ||
url.pathname.includes("/partials/")
) {
event.respondWith(networkFirst(request));