PWA: How to save an offline POST and fire it when the application is online?

Asked

Viewed 85 times

2

From what I saw it is possible to cache GET requests / service Workers so that they are triggered when the application comes back online. It is possible to do the same functionality with a POST?

Is that recommended? Or is there an alternative to saving requests when a PWA goes offline?

  • An alternative to save the data and post when the application is online would be to store the data in a non-relational database. An alternative would be Indexdb. Here you have a tutorial on it: https://developer.mozilla.org/en-US/docs/IndexedDB/Usando_IndexedDB

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.