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?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.