The wai-middleware-etag package

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.


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


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.



Change logNone available
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) [details]
AuthorAndreas Meingast <>
MaintainerAndreas Meingast <>
Home page
Bug tracker
Source repositoryhead: git clone git://
UploadedThu Feb 27 12:17:54 UTC 2014 by ameingast




Maintainers' corner

For package maintainers and hackage trustees