We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8e81b6 commit 8fc6988Copy full SHA for 8fc6988
lib/utopia/static/middleware.rb
@@ -13,10 +13,10 @@
13
14
module Utopia
15
module Static
16
+ DEFAULT_CACHE_CONTROL = "public, max-age=3600".freeze
17
+
18
# A middleware which serves static files from the specified root directory.
19
class Middleware
- DEFAULT_CACHE_CONTROL = "public, max-age=3600".freeze
-
20
# @param root [String] The root directory to serve files from.
21
# @param types [Array] The mime-types (and file extensions) to recognize/serve.
22
# @param cache_control [String] The cache-control header to set for static content.
0 commit comments