projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Explicit Cache-Control for lucid.http static content
[project/luci.git]
/
libs
/
lucid-http
/
luasrc
/
lucid
/
http
/
handler
/
file.lua
diff --git
a/libs/lucid-http/luasrc/lucid/http/handler/file.lua
b/libs/lucid-http/luasrc/lucid/http/handler/file.lua
index
8f7bf8b
..
4f29c8b
100644
(file)
--- a/
libs/lucid-http/luasrc/lucid/http/handler/file.lua
+++ b/
libs/lucid-http/luasrc/lucid/http/handler/file.lua
@@
-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,