{
                  
                  
                     const url = new URL(`${API_URL}${path}`);
                  
                  
                     const cacheKey = url.toString();
                  
                  
                  
                  
                  
                    if (!_dataCache[cacheKey]) {
                  
                  
                      _dataCache[cacheKey] = await fetch(`${url}`, {
                  
                  
                        method: 'POST',
                  
                  
                        credentials: 'same-origin',
                  
                  
                        ...opts,
                  
                  
                        headers
                  
                  
                      })
                  
                  
                        .then(r => r.json())
                  
                  
                        .then(data => data);
                  
                  
                    }
                  
                  
                    const data = _dataCache[cacheKey];
                  
                  
                  может ли память загнуться если так кешировать?
                  
                  
                
Обсуждают сегодня