on master help sign in
Notes to Greg
commitd296fb037b2eacb98c586712f0d9acaa6d0f4098 authorMichael Snoyman <michael@snoyman.com> dateFri 27 May 2011, 10:50 (15 years ago) parent80898d0
1 file changed+7−1
Network/Wai/Application/Static.hs+7−1
Network/Wai/Application/Static.hs+7−1
@@ -303,7 +303,13 @@ defaultDirListing :: StaticDirListing
303303defaultDirListing = StaticDirListing defaultListing []
304304
305305-- IO is for development mode
306−-- FIXME: Greg
306+
307+-- FIXME: Greg: Is the idea with ETag that an implementation could cache the
308+-- hashes at compile time and then not need to recompute them? It might make
309+-- more sense to include that as part of the File datatype itself. If we do
310+-- something like that, would it be possible to get rid of CacheSettings
311+-- altogether?
312+
307313type CheckHashParam = (File -> S8.ByteString -> Bool) -- FIXME Greg: Can you explain the purposes of the parameters here?
308314data CacheSettings = NoCache | Forever CheckHashParam | ETag (File -> IO (Maybe S8.ByteString))
309315