Skip to main content

gzip precompression as post processor

Project description

Hyde Zipper

This module precompresses all plaintext files so that properly configured web servers can serve gzip compressed content without compressing it on every request.

Installation

pip install hyde-zipper

Install Post Processor:

SITE_POST_PROCESSORS = {
    '/': {
        'zipper.site_post_processors.GzipCompress' : {
            'filetypes': ['*html', '*.css', '*.js', '*.xml', '*.txt'],
            'level': 9,
        },
    }
}

Settings

Zipper has 2 settings, filetypes, and level.

filetypes

A list with file extensions to apply precompression too. defaults to

['*html', '*.css', '*.js', '*.xml']

level

An integer 1 through 9 that controls the level of compression. 1 is the fastest, but least amount of compression, and 9 is the slowest, but most amount of compression. defaults to

9

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyde-zipper-0.0.3.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file hyde-zipper-0.0.3.tar.gz.

File metadata

  • Download URL: hyde-zipper-0.0.3.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hyde-zipper-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1c96b6c4e2aae1fd5b032a5ed972405792d7b35283694e4f977318e6ef3d0488
MD5 c0813c38c1a40d29122ec910bf76809c
BLAKE2b-256 f0c5ec14f1e747e8bc6e32d34009d9c78162453b0e04bcb3bd6186122eab4343

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page