これも理解できない。
誰かに教えてほしい。
addEventListener('fetch', event => {
// Prevent the default, and handle the request ourselves.
event.respondWith(async function() {
// Try to get the response from a cache.
const cachedResponse = await caches.match(event.request);
// Return it if we found one.
if (cachedResponse) return cachedResponse;
// If we didn't find a match in the cache, use the network.
return fetch(event.request);
}());
});
Ruby 初心者スレッド Part 66
■ このスレッドは過去ログ倉庫に格納されています
274デフォルトの名無しさん (ワッチョイ 1161-44a/)
2020/03/20(金) 01:07:27.55ID:405ti7Ej0■ このスレッドは過去ログ倉庫に格納されています
