pwa can't cache resource with space in url #25443
Labels
area: service-worker
Issues related to the @angular/service-worker package
effort1: hours
freq1: low
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
state: confirmed
type: bug/fix
Milestone
I'm submitting a...
Current behavior
when where is a resources in assets directory, and filename includes space " ", the @angular/pwa service worker can't cache it correctly.
Expected behavior
Minimal reproduction of the problem with instructions
ng add @angular/pwa
put an image named "a b.jpg" in assets
reference it in html
ng build --prod
open it in browser
enable offline mode in chrome devtools
refresh page
it will got a 504.
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: