projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeb1c37
)
Send Cache-Control headers by default
author
Steven Barth
<steven@midlink.org>
Sat, 19 Jul 2008 16:20:00 +0000
(16:20 +0000)
committer
Steven Barth
<steven@midlink.org>
Sat, 19 Jul 2008 16:20:00 +0000
(16:20 +0000)
libs/web/luasrc/http.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/http.lua
b/libs/web/luasrc/http.lua
index 6838220ce8a8163b4c74f6d382b2611911802680..2540d08a312a187c62a0c7ef088f3d6689befab5 100644
(file)
--- a/
libs/web/luasrc/http.lua
+++ b/
libs/web/luasrc/http.lua
@@
-187,6
+187,10
@@
function write(content, src_err)
if not context.headers or not context.headers["content-type"] then
header("Content-Type", "text/html; charset=utf-8")
end
+ if not context.headers["cache-control"] then
+ header("Cache-Control", "no-cache")
+ end
+
context.eoh = true
coroutine.yield(3)