3 ms·
Or serve statics from uWSGI (which also provides a spooler, cron and shared cachemem that works with python and Django but that's another story), here in optimi
by 1337shadow 8y ago
Or serve statics from uWSGI (which also provides a spooler, cron and shared cachemem that works with python and Django but that's another story), here in optimized version for best results according to lighthouse:
uwsgi
--plugin=python3,http,router_static,router_cache
--mime-file /etc/mime.types
--offload-threads '%k'
--file-serve-mode x-accel-redirect
--route '^/static/.* addheader:Cache-Control: public, max-age=7776000'
--static-map $STATIC_ROOT=$STATIC_URL
--static-gzip-all
--cache2 'name=statcalls,items=100'
--static-cache-paths 86400
--static-cache-paths-name statcalls"
- jadiofan 8y agoSane defaults FTW