From 96375271d90541c89f9f72098df14097e8b4cc3b Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Wed, 9 Oct 2019 10:58:39 +0800 Subject: Add example of setting static file headers, compressing static files --- docs/pages/1 - Cask: a Scala HTTP micro-framework.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') 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 -- cgit v1.2.3