[PATCH] Explicit Cache-Control for lucid.http static content
[project/luci.git] / libs / lucid-http / luasrc / lucid / http / handler / file.lua
index 8f7bf8b..4f29c8b 100644 (file)
@@ -135,6 +135,7 @@ function Simple.handle_GET(self, request)
                                                                end
 
                                                                local headers = {
+                                                                       ["Cache-Control"]  = "max-age=29030400",
                                                                        ["Last-Modified"]  = date.to_http( stat.mtime ),
                                                                        ["Content-Type"]   = mime.to_mime( file ),
                                                                        ["ETag"]           = etag,