最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Wordpress PWA with Form

programmeradmin0浏览0评论

Is it possible to use a form in a wordpress pwa. I am using the SuperPWA plugin and have a form on the site, the main focus on the site to collect data which is sent to google sheets..works fine. Will I be able capture data if the user is out of connectivity.

Ted

Is it possible to use a form in a wordpress pwa. I am using the SuperPWA plugin and have a form on the site, the main focus on the site to collect data which is sent to google sheets..works fine. Will I be able capture data if the user is out of connectivity.

Ted

Share Improve this question asked May 20, 2020 at 12:32 tbcguytbcguy 31 bronze badge 1
  • That would depend on the form plugin. They would need to be designed to work in a PWA. You should ask the plugin author. – Jacob Peattie Commented May 20, 2020 at 12:37
Add a comment  | 

1 Answer 1

Reset to default 0

By default the service worker does not proxy (cache) POST requests so no, by design, it's not possible. However... More than one PWA do do just this. As one of the comments says, you need to contact the form plugin author for support.

Reference:

https://stackoverflow/questions/35270702/can-service-workers-cache-post-requests

https://developer.mozilla/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论