summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2019-10-09 10:58:39 +0800
committerLi Haoyi <haoyi.sg@gmail.com>2019-10-09 10:58:39 +0800
commit96375271d90541c89f9f72098df14097e8b4cc3b (patch)
treed4974b99c8409938acf43de7be86303ebf11ee5a /docs
parent70dbe3ed561172a80ebff0515e727434b03040bf (diff)
downloadcask-96375271d90541c89f9f72098df14097e8b4cc3b.tar.gz
cask-96375271d90541c89f9f72098df14097e8b4cc3b.tar.bz2
cask-96375271d90541c89f9f72098df14097e8b4cc3b.zip
Add example of setting static file headers, compressing static files
Diffstat (limited to 'docs')
-rw-r--r--docs/pages/1 - Cask: a Scala HTTP micro-framework.md5
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