Closed chiragmongia closed 7 years ago
Ref: W3C discussion on caching POST requests. Nothing in the toolbox is wrong, this just isn't allowed by the current specification.
I think the best course here is to clarify in our docs that anything beyond GET
or HEAD
(if web browsers support HEAD
) is capable of being cached. As browsers only really support POST
otherwise and they are incapable of being cached currently.
@Garbee Thanks! The w3c service worker discussion makes sense.
I want to cache a POST request for 5 minutes. My POST request entry looks like below-
This is not getting cached. The entries for GET requests in exact similar syntax are working fine. Am I missing something?