{"repo":"Archmonger/ServeStatic","free":true,"listed":false,"github":"https://github.com/Archmonger/ServeStatic","clone":"git clone https://github.com/Archmonger/ServeStatic.git","description":"Production-grade Python static file server. Middleware or standalone.","language":"Python","stars":99,"topics":["asgi","django","http","http-server","staticfiles","wsgi","static","middleware"],"license":"MIT","category":"networking-infra","readme_excerpt":"ServeStatic --- ServeStatic simplifies static file serving with minimal lines of configuration. It enables you to create a self-contained unit without requiring external services like Nginx or Amazon S3. This can simplify any production deployment, but is especially useful for platforms like Heroku, OpenShift, and other PaaS providers. This project is designed to work seamlessly with CDNs to ensure high performance for traffic-intensive sites. It can be run in \"standalone\" mode, or alongside any preexisting ASGI/WSGI app. A command-line interface is provided to perform common tasks such as multi-format compression, file-name hashing, and manifest generation. Extra features and auto-configuration are available for Django users. When using ServeStatic , best practices are automatically handled such as: - Automatically serving compressed content - Proper handling of Accept-Encoding and Vary headers - Setting far-future cache headers for immutable static files. Visit the documentation to get started or learn more about ServeStatic . Frequently Asked Questions Isn't serving static files from Python horribly inefficient? The short answer to this is that if you care about performance and efficiency then you should be using ServeStatic behind a CDN (such as CloudFront). Due to the caching headers ServeStatic sends, the vast majority of static requests will be served directly by the CDN without touching your application, so it really doesn't make much difference how efficient ServeSta","default_branch":null,"files":null,"tree":[],"storefront":"/r/Archmonger","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Archmonger/ServeStatic/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}