Zopfli Gzip cache
This is a variant of gzip_cache but using zopfli for better compression.
Certain web servers (e.g., Nginx) can use a static cache of gzip-compressed files to prevent the server from compressing files during an HTTP call. Since compression occurs at another time, these compressed files can be compressed at a higher compression level for increased optimization.
Since zopfli is slow, this plugin uses joblib to compress files in parallel.
The pelican-zopfli plugin compresses all common text type files into a
.gz file within the same directory as the original file.
Installation
The easiest option is to install via pip from PyPI:
pip install pelican-zopfli
It is also possible to simply clone the git repository and put it in a directory
listed in PLUGIN_PATHS in your pelicanconf.py:
git clone https://github.com/VorpalBlade/pelican_zopfli.git
In both cases you will then have to enable the plugin by putting
pelican_zopfli into PLUGINS in your pelican configuration. It is
a good idea to only do this in your publishconf.py since this plugin is
quite slow.
Settings
PELICAN_ZOPFLI_OVERWRITEIf True, the original files will be replaced by the gzip-compressed files. This is useful for static hosting services (e.g S3). Defaults to False.
Metadata
Release files for pelican-zopfli 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pelican_zopfli-1.0.1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pelican_zopfli-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / pelican_zopfli-1.0.1.tar.gz
| Download URL | pelican_zopfli-1.0.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
773eac5f5dc4bdd8bd9e82e37c21b8edb6e1e868fe7fdfcc48e0fa05b0ea9a49
|
|
BLAKE2b-256 checksum How to use checksums |
7a9c8eef0c1d4315cf62b698c6877f981806bfc0cb5d572f69ae3e2900a18b46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2
|
Release files / pelican_zopfli-1.0.1-py3-none-any.whl
| Download URL | pelican_zopfli-1.0.1-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dc25488f7fc843f5cd0fc71cba06627d5f6868cf33261e495124bda8fbfb154
|
|
BLAKE2b-256 checksum How to use checksums |
77c09e3b4bd67ed8b90b891c540a70f1918f509c9ded26d78d09d4312913a421
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2
|