diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/pages/1 - Cask: a Scala HTTP micro-framework.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/pages/1 - Cask: a Scala HTTP micro-framework.md b/docs/pages/1 - Cask: a Scala HTTP micro-framework.md index 8cf80ec..2e191d3 100644 --- a/docs/pages/1 - Cask: a Scala HTTP micro-framework.md +++ b/docs/pages/1 - Cask: a Scala HTTP micro-framework.md @@ -204,6 +204,11 @@ contents from the corresponding file on disk (and 404 otherwise). Similarly, `@cask.staticResources` attempts to serve a request based on the JVM resource path, returning the data if a resource is present and a 404 otherwise. +You can also configure the `headers` you wish to return to static file requests, +or use `@cask.decorators.compress` to compress the responses: + +$$$staticFiles2 + ## Redirects or Aborts $$$redirectAbort |