pwa-angular | PWA Example | Progressive Web Application library
kandi X-RAY | pwa-angular Summary
kandi X-RAY | pwa-angular Summary
PWA Example
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pwa-angular
pwa-angular Key Features
pwa-angular Examples and Code Snippets
Community Discussions
Trending Discussions on pwa-angular
QUESTION
With jhipster-6.2-generated project, I'm running into issues in turning my Spring + Angular app into a progressive web app (PWA). My service-worker successfully registers but will not provide offline functionality once my app is deployed to production. In my console, I get a bad-precaching-response
, seemingly for at least one CSS file. With local deployments, caching works.
To successfully register my service-worker, I uncommented the serviceWorker-related code in index.html
so that I have this:
ANSWER
Answered 2019-Dec-03 at 05:24Exclude swagger-ui
from the workbox precache manifest by adding exclude: [/swagger-ui/]
to the config in the call to WorkboxPlugin.GenerateSW
in webpack/webpack.prod.js
. Most users won't access that page so it's a good idea to exclude it from precaching.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pwa-angular
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page