Много разных изменений

This commit is contained in:
Zuev committed 2026-08-20 00:55:27 +03:00
1 parent 3599d850f6
commit a1c4ee4298
78 files changed
+4698 -428

No files matched your search

+2 -1
View File
@@ -135,7 +135,8 @@ export async function logout() {
export const api = {
get: async (url) => {
const isCachable = CACHABLE_PREFIXES.some(prefix => url.startsWith(prefix));
const isCachable = !url.includes('/page') && !url.includes('/options')
&& CACHABLE_PREFIXES.some(prefix => url.startsWith(prefix));
if (isCachable) {
if (!cache.has(url)) {
cache.set(url, await apiFetch(url, 'GET'));