wai-middleware-etag

WAI ETag middleware for static files https://github.com/ameingast/wai-middleware-etag

Latest on Hackage:0.1.1.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed and maintained by Andreas Meingast

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
comments powered byDisqus