BackgroundSync
pwa:
serviceworker:
enabled: true
src: "sw.js"
workbox:
background_sync:
- queue_name: 'api'
match_callback: 'startsWith: /api/' # All requests starting with /api/
method: POST
max_retention_time: 7_200 # 5 days in minutes
force_sync_fallback: true #Optional
broadcast_channel: 'api-list'
- queue_name: 'contact'
regex: /\/contact-form\// # All requests starting with /contact-form/
method: POST
max_retention_time: 120 # 2 hours in minutesConfiguration Parameters
queue_name
match_callback
method
max_retention_time
force_sync_fallback
broadcast_channel
Additional Parameters
Last updated
Was this helpful?