diff options
author | Steven Barth <steven@midlink.org> | 2008-07-19 16:20:00 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-19 16:20:00 +0000 |
commit | 21b491c20bbe6456c14bba5c31df17cf65674e93 (patch) | |
tree | e615de6c6505ae60241a2bb0a66fe568af44b43d /libs/web/luasrc | |
parent | aeb1c372bd51f751fa9defebaa82d33e8eec0680 (diff) |
Send Cache-Control headers by default
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r-- | libs/web/luasrc/http.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua index 6838220ce8..2540d08a31 100644 --- 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) |