The wai-middleware-etag package

[ Tags: bsd3, library, web ] [ Propose Tags ]

WAI middleware that attaches ETags to responses for static files.

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.

The package is heavily influenced by wai-app-static.

WAI
http://hackage.haskell.org/package/wai
wai-app-static
http://hackage.haskell.org/package/wai-app-static

Properties

Versions 0.1.0.0, 0.1.1.1
Dependencies base (>=4.6 && <5), base64-bytestring (==1.0.*), bytestring (==0.10.*), cryptohash (==0.11.*), filepath (>=1.3 && <1.5), http-date (>=0.0.4 && <0.1), http-types (==0.8.*), unix-compat (==0.4.*), unordered-containers (==0.2.*), wai (==3.0.*) [details]
License BSD3
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 repository head: git clone git://github.com/ameingast/wai-middleware-etag.git
Uploaded Fri Oct 16 10:08:37 UTC 2015 by ameingast
Distributions NixOS:0.1.1.1
Downloads 683 total (4 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-10-16 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees