Displaying 1 result from an estimated 1 matches for "pages_cach".
Did you mean:
pages_cache
2010 Jan 09
5
Redirect 301 and cache
...put the following code in the application controller and worked fine:
before_filter :check_uri
def check_uri
if !/^www/.match(request.host)
redirect_to request.protocol + "www." + request.host_with_port +
request.request_uri, :status => 301
end
end
But I also do a simple pages_cache and the above code doesn''t execute
when the page is cache. Is any other way to call the above method from
route.rb even when the pages are cached?
Thank you
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to th...