Closed pulse-mind closed 7 months ago
better:
def service_worker(request):
return FileResponse(open(app_settings.PWA_SERVICE_WORKER_PATH, 'rb'), content_type='application/javascript')
anyway this is also not clean. Better would be to use the file API of django as it could also handle aws and co
you're right, but it one step forward ;)
A fix will ship in the next release.
When running with Django 4.2, there is a log :
The source code is :
This is a suggestion to change this :