We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The pwa.yaml file should be updated to reflect the changes in 1.1.x:
Something like this:
workbox: # https://pwa.spomky-labs.com/the-service-worker/workbox/warm-caching-1 resource_caches: - cache_name: page_cache match_callback: 'regex: |/$|' strategy: 'StaleWhileRevalidate' broadcast: true broadcast_headers: - 'X-App-Cache' preload_urls: - 'app_homepage' - cache_name: pages match_callback: 'regex: |/api/.*$|' # regex: "/api" strategy: CacheFirst broadcast: true broadcast_headers: - 'X-App-Cache' offline_fallback: page: 'app_homepage' background_sync: - queue_name: 'items' match_callback: 'regex: {/items/.*$}' broadcast_channel: 'items-sync' - queue_name: 'add' match_callback: 'regex: |/add|' method: POST broadcast_channel: 'add-item'
I used pipes and brackets in the regex as I find it easier to read than
'regex: \/articles\/.*$' 'regex: {/articles/.*$}'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The pwa.yaml file should be updated to reflect the changes in 1.1.x:
Something like this:
I used pipes and brackets in the regex as I find it easier to read than
The text was updated successfully, but these errors were encountered: