Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added first Varnish TTL test

  • Loading branch information...
commit 368e87ec9aa3a0999a41d1c7a1beb7587e93c5cf 1 parent ebabdd3
@bfcapell bfcapell authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  app/controllers/pages_controller.rb
View
1  app/controllers/pages_controller.rb
@@ -2,6 +2,7 @@ class PagesController < PublicController
# Renders a Page using its associated template, displaying its blocks and widgets
def show
+ response.headers['X-VARNISH-TTL'] = '120'
@page = uhook_load_page
render_page @page
end
Please sign in to comment.
Something went wrong with that request. Please try again.