Re:Useful Python Libraries for Startups
by zallarak on Tuesday June 30, 2015 @03:09PM
(#9807710)
Good question. We were not using nginx to begin with (rather, serving it through our app server). It was an alternative to nginx and is super easy to set up: https://github.com/evansd/whitenoise#quickstart-for-other-ws...
[ Parent
| on HN ]
If you are using python code for serving static files, probably you are not seeing lots of traffic yet, I guess you should reconsider your decision and watch "Simple made Easy"[1] talk by Rich Hickey
Looks like Whitenoise can gzip your assets, add a hash to the filename, serve them with far-future headers, and then selectively serve the gzipped version based on Accept-Encoding headers.
Put that behind Cloudflare and your origin server is only hit when an edge location is warming its cache.
Sounds Hickey-tier simple to me, especially compared to your advice of "just use and configure Nginx".