Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

staticCache of compressed resources #400

Closed
scriby opened this Issue · 14 comments

7 participants

@scriby

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.

@tj
Owner
tj commented

yup we have an issue open for Vary support

@ryanrolds

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

@nponeccop

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

@ryanrolds

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.

@tj
Owner
tj commented

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

@nponeccop

Gzippo both compresses AND avoids recompression.

@ryanrolds

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.

@tj
Owner
tj commented

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

@tj
Owner
tj commented

@nponeccop gzippo isn't a cache..

@ryanrolds

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

@tj
Owner
tj commented

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

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

@mitar

+1

@jonathanong

staticCache will be removed in v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.