The wai-middleware-etag package

[maintain]

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

Versions0.1.0.0, 0.1.0.0
Dependenciesbase (>=4.6 && <5), base64-bytestring (==1.0.*), bytestring (==0.10.*), cryptohash (==0.11.*), filepath (==1.3.*), http-date (>=0.0.4 && <0.1), http-types (==0.8.*), unix-compat (==0.4.*), unordered-containers (==0.2.*), wai (>=2.0.0 && <2.1)
LicenseBSD3
AuthorAndreas Meingast <ameingast@gmail.com>
MaintainerAndreas Meingast <ameingast@gmail.com>
Stabilityexperimental
CategoryWeb
Home pagehttps://github.com/ameingast/wai-middleware-etag
Bug trackerhttps://github.com/ameingast/wai-middleware-etag/issues
Source repositoryhead: git clone git://github.com/ameingast/wai-middleware-etag.git
Upload dateThu Feb 27 12:17:54 UTC 2014
Uploaded byameingast

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees