From 5b691fff103e4f338b86b11e520e9061dffb7232 Mon Sep 17 00:00:00 2001 From: John Hwang Date: Tue, 24 Sep 2013 10:59:52 -0400 Subject: [PATCH] Do not cache generated redirect index file. Returning visitors to site were being redirected to the old page because their browser was caching the index page which was pointing to the previously URL. --- .../lib/middleman-core/sitemap/extensions/redirects.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/sitemap/extensions/redirects.rb b/middleman-core/lib/middleman-core/sitemap/extensions/redirects.rb index 6ae8d6dd..63183b53 100644 --- a/middleman-core/lib/middleman-core/sitemap/extensions/redirects.rb +++ b/middleman-core/lib/middleman-core/sitemap/extensions/redirects.rb @@ -77,7 +77,7 @@ module Middleman def template? true end - + def render(*args, &block) url = ::Middleman::Util.url_for(store.app, @request_path, :relative => false, :find_resource => true) @@ -89,6 +89,7 @@ module Middleman +