summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-10-08 11:31:27 +0200
committerhukl <contact@smyck.org>2009-10-08 11:31:27 +0200
commit0db008d0bfb0803e5b000fcf08058e7d01f588eb (patch)
tree423be4b96c1b29c7e4a311ea21cdf80555d86367 /app/controllers
parentbdcb3c20521c9c51bdafd6bd40288b38c35f9202 (diff)
setting expiry header
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/content_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb
index 13d06e9..fde2570 100644
--- a/app/controllers/content_controller.rb
+++ b/app/controllers/content_controller.rb
@@ -11,6 +11,8 @@ class ContentController < ApplicationController
11 # returns the most recent page associated to this node instead. 11 # returns the most recent page associated to this node instead.
12 def render_page 12 def render_page
13 13
14 expires_in 10.minutes, :public => true
15
14 if @page and @page.public? 16 if @page and @page.public?
15 template = @page.valid_template 17 template = @page.valid_template
16 18