Added HTTP headers and meta tags discouraging the browser to cache the page default tip
authorTimm S. Mueller <tmueller@neoscientists.org>
Wed, 24 Feb 2010 14:44:46 +0100
changeset 25830e3e6d34685
parent 257 058f96953252
Added HTTP headers and meta tags discouraging the browser to cache the page
when logged on or when the page content is dynamic
htdocs/index.lua
     1.1 --- a/htdocs/index.lua	Sun Feb 21 12:55:27 2010 +0100
     1.2 +++ b/htdocs/index.lua	Wed Feb 24 14:44:46 2010 +0100
     1.3 @@ -16,6 +16,11 @@
     1.4  <head>
     1.5  	<link rel="stylesheet" type="text/css" href='/loona.css' />
     1.6  	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
     1.7 +	<%if loona.authuser or loona:isdynamic() then
     1.8 +		loona:addheader("If-Modified-Since: Sun, 1 Jan 1995 00:00:00 GMT\n")
     1.9 +		%>
    1.10 +		<meta http-equiv="expires" content="0" />
    1.11 +	<%end%>
    1.12  	<title>
    1.13  		Loona CMS : <%=loona:encodeform(loona:title())%>
    1.14  	</title>