[web2py] Re: Progressive Web Apps

2019-12-04 Thread David Zejda
Hi, I use web2py to serve PWA, service worker for client-side caching and for proactive loading of contents which are likely to be requested in the next step. In routes.py I have root_static = ['favicon.ico', 'robots.txt', 'service_worker.js']. Per-app specific service worker. The script is

[web2py] Re: Progressive Web Apps

2019-11-28 Thread dirman
#view Hello World Hello World! Write functions to return the three files instead. Dont put actual files in static folder #controller def manifest(): response.headers['Content-Type'] = 'text/json' return ''' { "name": "Hel