From: Steven Barth Date: Sat, 19 Jul 2008 16:20:00 +0000 (+0000) Subject: Send Cache-Control headers by default X-Git-Tag: 0.8.0~609 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21b491c20bbe6456c14bba5c31df17cf65674e93;p=oweals%2Fluci.git Send Cache-Control headers by default --- diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua index 6838220ce..2540d08a3 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)