0

I want to cache a POST request for 5 minutes. My POST request entry looks like

toolbox.router.post(/myPostApi/, toolbox.cacheFirst, {
    cache: {
        name: 'myCache',
        maxAgeSeconds: 300
    }
});

This is not getting cached. The entries for GET requests in exact similar syntax are working fine. Am I missing something?

Chirag Mongia
  • 545
  • 4
  • 12

1 Answers1

1

As per the comment on this github issue, this is NOT allowed by the current specification of service worker.

For reference, the spec discussion is available here

Chirag Mongia
  • 545
  • 4
  • 12