GoogleChrome / workbox

📦 Workbox: JavaScript libraries for Progressive Web Apps

Home Page:https://developers.google.com/web/tools/workbox/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My interfaces are all post requests, and I want to cache posts. Is there a way?

bbhxwl opened this issue · comments

commented

My interfaces are all post requests, and I want to cache posts. Is there a way?

workbox-core.dev.js:860 Uncaught (in promise) attempt-to-cache-non-get-request: Unable to cache 'https://api.***.com/Api/Manage/v1/ProjectServiceOrderApi_GetServiceOrderReviewListToPage' because it is a 'POST' request and only 'GET' requests can be cached.
at Object.putWrapper [as put] (https://cdn.jsdelivr.net/npm/workbox-cdn@5.1.4/workbox/workbox-core.dev.js:860:17)
at NetworkFirst._getNetworkPromise (https://cdn.jsdelivr.net/npm/workbox-cdn@5.1.4/workbox/workbox-strategies.dev.js:570:57)
at async NetworkFirst.handle (https://cdn.jsdelivr.net/npm/workbox-cdn@5.1.4/workbox/workbox-strategies.dev.js:445:24)

Hi there,

Workbox is moving to a new engineering team within Google. As part of this move, we're declaring a partial bug bankruptcy to allow the new team to start fresh. We realize this isn't optimal, but realistically, this is the only way we see it working. For transparency, here're the criteria we applied:

Thanks, and we hope for your understanding!
The Workbox team