I tried to cache the POST request in a working application for the fetch event.
I used cache.put(event.request, response) , but the returned promise was rejected with TypeError: Invalid request method POST. .
When I tried to get into the same POST API, caches.match(event.request) gave me undefined.
But when I did the same for the GET methods, it worked: caches.match(event.request) for the GET request gave me an answer.
Can attendants cache POST requests? In case they cannot, what approach can we use to make applications truly standalone?
source share