How to exclude cached assets from /assets/bundles/* #109
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Hi, You can change the |
Beta Was this translation helpful? Give feedback.
-
It seems that the regex expression does not works, just opened the project in another computer (fresh Service Worker installation) and I could see those assets ( |
Beta Was this translation helpful? Give feedback.
-
Typo: bundles instead of bundle |
Beta Was this translation helpful? Give feedback.
-
Hi again. When I started this discussion I was using an older version (less than 1.1.4) of The inclusion of all the assets installed inside Can you help me (again) to solve the same problem? Many thanks. # config/packages/pwa.yaml
pwa:
image_processor: 'pwa.image_processor.gd'
manifest:
enabled: true
serviceworker:
enabled: true
src: 'sw.js'
workbox:
enabled: true
cache_manifest: true
asset_cache:
enabled: true
regex: '/^(?!\/assets\/bundles\/).*\.(css|jsx?|ico|png|jpe?g|gif|svg|webp)$/'
resource_caches:
-
match_callback: 'startsWith: /'
cache_name: 'static-pages'
strategy: 'NetworkFirst'
network_timeout: 1
preload_urls:
-
path: 'app_frontend_homepage'
params:
_locale: 'en' |
Beta Was this translation helpful? Give feedback.
-
problem solved in v1.2.4 thanks to this PR #231 |
Beta Was this translation helpful? Give feedback.
problem solved in v1.2.4 thanks to this PR #231