* cleaned up res/ folder
* serving static/ content from res/ with 20 years expiration date * linen texture
This commit is contained in:
parent
f6f066a93e
commit
6a8ffaf25a
9 changed files with 11 additions and 8 deletions
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue