* cleaned up res/ folder

* serving static/ content from res/ with 20 years expiration date
* linen texture
This commit is contained in:
Vincent Ambo 2012-03-22 14:34:04 +01:00
parent f6f066a93e
commit 6a8ffaf25a
9 changed files with 11 additions and 8 deletions

View file

@ -75,6 +75,9 @@ tazBlog acid = do
ok $ toResponse $ adminIndex ("tazjin" :: Text)
, dir "admin" $ ok $ toResponse $ adminLogin
, dir "dologin" $ processLogin acid
, do setHeaderM "cache-control" "max-age=630720000"
setHeaderM "expires" "Tue, 20 Jan 2037 04:20:42 GMT"
dir "static" $ serveDirectory DisableBrowsing [] "../res"
, serveDirectory DisableBrowsing [] "../res"
, notFound $ toResponse $ showError NotFound DE
]