Много разных изменений
This commit is contained in:
1 parent
3599d850f6
commit
a1c4ee4298
78 files changed
+4698
-428
No files matched your search
@@ -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'));
|
||||
|
||||
Reference in new issue
Block a user