Привет, друзья! В этой статье я хочу поделиться с вами результатами небольшого эксперимента, связанного с ускорением загрузки изображений с помощью Imgproxy, Cache API (далее — кеш) и Service Worker API (далее — СВ). Мы с вами разработаем простое приложение на React, в котором используется…
Рано или поздно у каждого кто работал с webworkers возникает ситуация когда код превращается в кашу вроде этого: main.jsconst worker = new Worker('test.worker.js'); worker.onmessage = (data) => { if(data.eventName === 'someFuncResult') someFunc(); else if(data.eventName === 'someFunc2Result') someFunc2(); }; worker.postMessage({eventName: 'someFunc'}); test.worker.jsself.addEventListener('message', (data) => {…
Использование Angular для создания прогрессивных веб-приложений (PWA) Angular — отличный выбор для разработки PWA. Поддержка Service Worker'ов включена в Angular CLI начиная с версии 1.7.0, для быстрого старта разработки PWA приложения. Service Worker может быть настроен в приложении Angular с помощью файла…
In Gradle Enterprise before 2021.3 (and Enterprise Build Cache Node before 10.0), there is potential cache poisoning and remote code execution when running the build cache node with its default configuration. This configuration allows anonymous access to the configuration user interface and anonymous write access to the build cache. If access control to the build cache is not changed from the default open configuration, a malicious actor with network access can populate the cache with manipulated entries…