You can't use varnish caching and redirects. You can cache you stuff in memcache instead and then perform filtering in the app. Oren
On Fri, Feb 25, 2011 at 7:01 AM, Cristiano <cbe...@gmail.com> wrote: > I have a bit of a problem. I want my site to only work on SSL, so I > have setup a before_filter to redirect to HTTPS if needed. > > The problem is that if I cache a page (and even if it get's cached on > https) the page can then get loaded on http without being redirected. > > I imagine the way to solve this is to split apart the cache for https > and http, or to somehow handle the redirect in nginx rather than in my > app. > > Is there any way to do this or am I screwed? > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to heroku@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.