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
#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
2 matches
Mail list logo