提交 1d449a97 authored 作者: zhanrongzhen's avatar zhanrongzhen

设置锐速云验证码文件禁止缓存

上级 0313d6a6
...@@ -177,7 +177,9 @@ http { ...@@ -177,7 +177,9 @@ http {
ngx.header["Content-Type"] = mime_type ngx.header["Content-Type"] = mime_type
ngx.header["Content-Length"] = attributes.size ngx.header["Content-Length"] = attributes.size
ngx.header["Cache-Control"] = "max-age=86400" ngx.header["Cache-Control"] = "no-cache, no-store, must-revalidate"
ngx.header["Pragma"] = "no-cache"
ngx.header["Expires"] = "0"
ngx.say(content) ngx.say(content)
local ok, err = os.remove(filepath) local ok, err = os.remove(filepath)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论