How to calculate etags. Can perform filesystem reads on each call, or use some caching mechanism.
Modulewai-app-static-3.1.9Haskell2010
WaiAppStatic.Storage.Filesystem
Access files on the filesystem.
- 1 type
- 3 values
- Packagewai-app-static-3.1.9
- Exports4
- LanguageHaskell2010
- LicenceMIT
- SourceFilesystem.hs
Types
1 declarationSettings
3 declarationsSettings optimized for a web application. Files will have aggressive caching applied and hashes calculated, and indices and listings are disabled.
Settings optimized for a file server. More conservative caching will be applied, and indices and listings are enabled.
Same as defaultWebAppSettings, but additionally uses a specialized
ETagLookup in place of the standard one. This can allow you to cache your
hash values, or even precompute them.