Django staticfiles extension for HTTP/2 push
Project description
Middleware and templatetag for Django to utilize HTTP/2 push for assets included in a Django template. The middleware injects a Link header in each response if there are files to be pushed to the client. All files in the template which are suitable for HTTP/2 push should be included with the staticpush templatetag instead of the vanilla static templatetag. The former simply augments the later and registers the resulting static URL with the middleware.
This package currently supports Apache2 webservers with mod_http2 enabled, as the actual HTTP/2 push is offloaded to the webserver.
Installation
pip install django-static-push
Documentation
Development
To run the all tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
0.1.0 (2016-01-29)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-static-push-0.1.0.tar.gz
.
File metadata
- Download URL: django-static-push-0.1.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d78b65d773c9a422a7009d07c427d77754e3fbf46275256de4eccd142d81c385 |
|
MD5 | 281313fef6eee3bac25d94ab26a4031e |
|
BLAKE2b-256 | 3d1a220e02e264159b8900a10b1c66eaf6bb9ccbc240085b34189983868e90b9 |
Provenance
File details
Details for the file django_static_push-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_static_push-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0bacc152e82a42a02d7d3da7bb33e8f1c53dfc1a32ffac6748f287782a3dfa0 |
|
MD5 | ecae709abe6178e6b20ddfaa83e9e90c |
|
BLAKE2b-256 | 1d3a2d8d48105997225697fb371024c53dfa579246b7b56ca49030b44a78f8cb |