packages feed

wai-middleware-etag-0.1.1.1: wai-middleware-etag.cabal

name:                   wai-middleware-etag
version:                0.1.1.1
synopsis:               WAI ETag middleware for static files
homepage:               https://github.com/ameingast/wai-middleware-etag
Bug-reports:            https://github.com/ameingast/wai-middleware-etag/issues
license:                BSD3
license-file:           LICENSE
author:                 Andreas Meingast <ameingast@gmail.com>
maintainer:             Andreas Meingast <ameingast@gmail.com>
category:               Web
stability:              experimental
build-type:             Simple
cabal-version:          >= 1.8
description:            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>


extra-source-files:     src/Network/Wai/Middleware/ETag.hs

source-repository head
    type:               git
    location:           git://github.com/ameingast/wai-middleware-etag.git

library
    exposed-modules:    Network.Wai.Middleware.ETag
    hs-source-dirs:     src
    ghc-options:        -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns
    extensions:         OverloadedStrings
    build-depends:
                        base                    >= 4.6      && < 5,
                        base64-bytestring       >= 1.0      && < 1.1,
                        bytestring              >= 0.10     && < 0.11,
                        cryptohash              >= 0.11     && < 0.12,
                        filepath                >= 1.3      && < 1.5,
                        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                     >= 3.0      && < 3.1