add ru to nginx.conf and sw.js

This commit is contained in:
xtotdam
2026-03-14 14:26:22 +03:00
parent 73795dbe13
commit 03ecaf8603
2 changed files with 5 additions and 3 deletions

View File

@@ -100,7 +100,9 @@ self.addEventListener('fetch', (event) => {
isLocal &&
(url.pathname.endsWith('.html') ||
url.pathname === '/' ||
/^\/(en|fr|es|de|zh|zh-TW|vi|tr|id|it|pt|nl|be)(\/|$)/.test(url.pathname))
/^\/(en|fr|es|de|zh|zh-TW|vi|tr|id|it|pt|ru|nl|be)(\/|$)/.test(
url.pathname
))
) {
event.respondWith(networkFirstStrategy(event.request));
}