Varia's website, varia.zone or vvvvvvaria.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
mb@mb 04c2824180 adding the 2 submodules again 6 years ago
..
Readme.rst adding the 2 submodules again 6 years ago
__init__.py adding the 2 submodules again 6 years ago
gzip_cache.py adding the 2 submodules again 6 years ago
test_gzip_cache.py adding the 2 submodules again 6 years ago

Readme.rst

Gzip cache
----------

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.

The ``gzip_cache`` plugin compresses all common text type files into a ``.gz``
file within the same directory as the original file.

Settings
--------

* `GZIP_CACHE_OVERWRITE`
If 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.