diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-10-30 20:24:05 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-10-30 20:24:05 +0100 |
commit | 43b72ebc81a6cd2edfc90435a6b32a29b0bd1e36 (patch) | |
tree | 61bca5b49cb4bf7fff8087931cf1d08903f52223 /index.cgi | |
parent | 6f83a035bd3ca855af50fc05af2b1776809893f2 (diff) |
added no-cache header
Diffstat (limited to '')
-rwxr-xr-x | index.cgi | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -12,6 +12,7 @@ CONTENTTYPE = "text/html; charset=utf-8" #CONTENTTYPE = "application/xhtml+xml; charset=utf-8" puts "Content-type: #{CONTENTTYPE}" +puts "Cache-Control: no-cache" if ($cgi.include?("utf") || $cgi.cookies["utf"][0]) && !$cgi.include?("ascii") puts "Set-Cookie: utf=true; path=/; expires=#{(Time.now+1*60*60*24*365).getgm.strftime("%a, %d %b %Y %H:%M:%S %Z")}" |