This version can be pinned in stack with:wai-middleware-static-0.9.3@sha256:7928b6ecc6dc03ff720d478b1eb4f58434c5dca418aa16e386593c46cc709f32,3221
Module documentation for 0.9.3
Depends on 15 packages
(full list with versions):
base, 
base16-bytestring, 
bytestring, 
containers, 
cryptohash-sha1, 
directory, 
expiring-cache-map, 
filepath, 
http-types, 
mime-types, 
old-locale, 
semigroups, 
text, 
time, 
wai wai-middleware-static 
WAI middleware that intercepts requests to static files and serves them if they exist.
0.9.3 [2024.12.28]
- Drop support for pre-8.0 versions of GHC.
0.9.2 [2022.03.08]
- Allow building with GHC 9.2.
- Replace the cryptoniteandmemorydependencies with equivalent
functionality fromcryptohash-sha1andbase16-bytestring.
0.9.1 [2021.10.31]
- Always import Data.Listqualified.
0.9.0 [2020.10.01]
- Only serve static files on HEADorGETrequests.
0.8.3 [2019.10.20]
- Add Options,staticWithOptions,staticPolicyWithOptions, andunsafeStaticPolicyWithOptions.
- Parameterize Middleware with options allowing custom file name to MIME type mapping.
0.8.2 [2018.04.07]
- Remove unused test suite.
0.8.1
- Add Semigroup Policyinstance
- Replace dependencies on base16-bytestringandcryptohashwith the more
modernmemoryandcryptonitepackages, respectively [myfreeweb]
0.8.0
- 
The mime-typeslibrary 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 getMimeTypefunction [Shimuuar]
 
0.7.0.1
- Fixed Windows build (by replacing unixdependency with equivalentdirectoryfunction)
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 isNotAbsolutepolicy and changestaticandstaticPolicyto
usenoDotsandisNotAbsolutepolicies by default. (Thanks to Nick Hibberd!)
 
- 
Add unsafeStaticPolicy, which behaves as the old insecurestaticPolicybehaved.
 
- 
Add changelog