wai-middleware-etag: WAI ETag middleware for static files

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

WAI middleware that attaches ETags to responses for static files if they exist.

Caveats:

If caching is turned on, the middleware caches calculated checksums aggressively in a synchronized hashmap; checksums are calculated only once, so changes on the file-system are not reflected until the server is restarted.

This middleware only calculates ETag checksums for file smaller than 1MB, otherwise it attaches a last-modified tag to the response.

WAI
http://hackage.haskell.org/package/wai

Properties

Versions 0.1.0.0, 0.1.0.0, 0.1.1.1
Change log None available
Dependencies base (>=4.6 && <5), base64-bytestring (>=1.0 && <1.1), bytestring (>=0.10 && <0.11), cryptohash (>=0.11 && <0.12), filepath (>=1.3 && <1.4), http-date (>=0.0.4 && <0.1), http-types (>=0.8 && <0.9), unix-compat (>=0.4 && <0.5), unordered-containers (>=0.2 && <0.3), wai (>=2.0.0 && <2.1) [details]
License BSD-3-Clause
Author Andreas Meingast <ameingast@gmail.com>
Maintainer Andreas Meingast <ameingast@gmail.com>
Category Web
Home page https://github.com/ameingast/wai-middleware-etag
Bug tracker https://github.com/ameingast/wai-middleware-etag/issues
Source repo head: git clone git://github.com/ameingast/wai-middleware-etag.git
Uploaded by ameingast at 2014-02-27T12:17:54Z

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees