Skip to main content

WSGI middleware for statistical HTML browser resource squeezing.

Project description

This package provides a WSGI middleware component which “squeezes” HTML documents by merging browser resources (javascript and stylesheets).

It uses statistical analysis to determine the optimal bundles based on the HTML documents that pass through it. Vary-headers are observed, as are resource expiration dates.

Documents that are not squeezed are given the ‘no-cache’ pragma in an expectation that we will be able to squeeze it after sufficient burn-in. Squeezed documents are served with expiration dates no later than the expiration dates of the squeezed resources which it references.

Usage

The middleware requires two following options to be set:

@cache_dir: Relative path to a directory where we store squeezed resources

@url_prefix: Path segment or full base URL that will be used to serve the cache directory as static files.

Remember to configure a WSGI application to serve the squeezed resources!

Changelog

0.1 (released 10/2-2008)

  • Initial release.

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

repoze.squeeze-0.1.tar.gz (11.8 kB view details)

Uploaded Source

File details

Details for the file repoze.squeeze-0.1.tar.gz.

File metadata

  • Download URL: repoze.squeeze-0.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for repoze.squeeze-0.1.tar.gz
Algorithm Hash digest
SHA256 0bfc9cc8d78ce40c51fc1b8e78443aeade05560478402b315ac8638485477b8e
MD5 c5079ce1d1307c61bc88985e00b7ccc1
BLAKE2b-256 2e929cff4480abf381f550ac9c02f8a97d0d4bf979f62cda0bcd34bc65d88fda

See more details on using hashes here.

Supported by

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