staticCache of compressed resources #400

Closed
scriby opened this Issue Oct 31, 2011 · 14 comments

Comments

Projects
None yet
7 participants

scriby commented Oct 31, 2011

I was looking at the interplay between staticCache and compress, it looks like resources will be re-compressed on each request even if the file contents themselves are in memory. Being able to cache the compressed version of the resources looks like a very useful thing, as cache + compression is what I would expect to be the norm.

Member

tj commented Oct 31, 2011

yup we have an issue open for Vary support

Contributor

ryanrolds commented Nov 18, 2011

I will look at this over the weekend. I will updated #393 with a pull request.

There is gzippo npm library: see https://github.com/tomgallacher/gzippo

Contributor

ryanrolds commented Mar 14, 2012

There is also https://github.com/mape/connect-assetmanager, which supports gzip if you're using 0.6.x. It also has some nice concatenation, minification, and changing watching features. Which is awesome if your working with js and css.

Member

tj commented Mar 14, 2012

@nponeccop core has compress() now, but that's not what this issue is about

Gzippo both compresses AND avoids recompression.

Contributor

ryanrolds commented Mar 14, 2012

connect-assetmanager does, but it not generic. You have define the files and the routes to the files you want to serve. When run on 0.6.x it keeps two copies, one compressed and one uncompressed, and only rebuilds them if the file(s) change(s).

Vary support is in core, right? This shouldn't be too hard to add if desired.

Member

tj commented Mar 14, 2012

@ryanrolds I dont think we have it right now, we're still missing quite a few reverse proxy cache must-haves

Member

tj commented Mar 14, 2012

@nponeccop gzippo isn't a cache..

Contributor

ryanrolds commented Mar 14, 2012

Do we have a list of those must haves somewhere? Issues scattered to the four winds of the issues system?

Member

tj commented Mar 14, 2012

haha yeah the issues are all a mess right now, Vary and some of the cache-control directives we're ignoring right now for sure

manast commented Aug 26, 2012

take a look at this: https://github.com/OptimalBits/cabinet it may do what you need...

mitar commented Feb 12, 2013

+1

Contributor

jonathanong commented Oct 18, 2013

staticCache will be removed in v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment