This version can be pinned in stack with:wai-middleware-static-0.8.0@sha256:819eb104224cefb36cb6d8db5c43a2103e0add6c5bb799fad8bde0762493bfa9,2107
Module documentation for 0.8.0
Depends on 15 packages
(full list with versions):
base,
base16-bytestring,
bytestring,
containers,
cryptohash,
directory,
expiring-cache-map,
filepath,
http-types,
mime-types,
mtl,
old-locale,
text,
time,
wai 0.8.0
-
The mime-types
library is now used to lookup MIME types from extensions.
As a result, some extensions now map to different MIME types. They are:
Extension |
wai-middleware-static |
mime-types |
class |
application/octet-stream |
application/java-vm |
dtd |
text/xml |
application/xml-dtd |
jar |
application/x-java-archive |
application/java-archive |
js |
text/javascript |
application/javascript |
ogg |
application/ogg |
audio/ogg |
ttf |
application/x-font-truetype |
application/x-font-ttf |
-
Exposed getMimeType
function [Shimuuar]
0.7.0.1
- Fixed Windows build (by replacing
unix
dependency with equivalent directory
function)
0.7.0.0
- Implement caching [agrafix]
- Include mp4 and ogv mime_types [DrBoolean]
- Dependency updates for ghc 7.10 [DougBurke]
0.6.0.1
0.6.0
0.5.0.1
0.5.0.0
-
Add isNotAbsolute
policy and change static
and staticPolicy
to
use noDots
and isNotAbsolute
policies by default. (Thanks to Nick Hibberd!)
-
Add unsafeStaticPolicy
, which behaves as the old insecure staticPolicy
behaved.
-
Add changelog