No problem. The issue with HTML pages not being Gzipped resolved
itself somehow - now everything's being compressed just as it should
be. The downside is that it ties up the dyno, and adds about 5-10 ms
of processing time to my heavier pages. It would be great if Heroku
could get Nginx handling this again, but oh well. Now I'm able to run
three Rails instances on each dyno (via Unicorn) instead of one, so
the tradeoff is worth it.

Also, I had to rig up a middleware to set 'Cache-Control' headers on
my assets, since that isn't done for you anymore.

The two apps I've switched over are the ones that don't really use
HTTP caching aside from the assets, so losing Varnish isn't a big
deal. I have a third that uses HTTP caching extensively, and I'm
unsure about it. Switching to Rack::Cache might be worth it for the
ability to expire pages from within the app, but I'll have to look
into it some more.


On Jun 3, 10:56 am, John McCaffrey <john.mccaff...@gmail.com> wrote:
> Thanks for the play by play!
>
>  I didn't get a chance to try out any of my apps on it yet, but I appreciate
> the heads up on some of the things I might run into.
>
> At first the lack of varnish seemed like a big loss, and that it would now
> mean that your app server is requests that used to be served by varnish.
>
> I read through this post on rack
> cache<http://www.saturnflyer.com/blog/jim/2010/06/24/rack-cache-on-heroku-w...>,
> which might not be the most up to date, but it eased my concern somewhat.
>
> Getting the official word on the gzip thing would be nice.
>
> thanks
> -John
>
> On Thu, Jun 2, 2011 at 8:50 PM, Chris Hanks
> <christopher.m.ha...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > Nevermind, I found Rack::Deflater, and it seems to be Gzipping most
> > things alright (it takes care of the assets, but not HTML, and i'm not
> > sure why).
>
> > On Jun 2, 6:30 pm, Chris Hanks <christopher.m.ha...@gmail.com> wrote:
> > > I tried moving an app over to Cedar, and now that I'm looking at it in
> > > Firebug it appears that Heroku isn't gzipping responses anymore. I
> > > knew that I'd have to handle my own http caching since this stack
> > > doesn't use Varnish, but I thought that Gzip was handled by Nginx and
> > > would still be available. Is this another thing we have to handle at
> > > the app level now?
>
> > --
> > 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.
>
> --
> -John

-- 
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.

Reply via email to