users@glassfish.java.net

Re: precompression of static content?

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 18 Dec 2008 16:20:22 -0500

Salut,

thanks for the ping ;-)

glassfish_at_javadesktop.org wrote:
> I have compression enabled and working on my server.
> But Is the server capable of doing pre-compression of static content?
> Is my understanding correct that the server compresses each file on the fly when compression is enabled?
> I read there that some other server can pre compress static files to save the duplication of doing it over and over for each request.

That should be quite simple to implements as a File Cache features.
Right now grizzly ignores compressed files but should be easy to cache
them once compressed. Just file an enhancement here:

https://glassfish.dev.java.net/servlets/ProjectIssues

A+

-- jeanfrancois


>
> ref: http://www.aptivate.org/webguidelines/Compression.html
>
> Second question:
> I read on a blog that the INTEGER value entered for minCompressionSize is in "OCTET". What is the implication of this? Does it impact the integer one enters?
> Thanks.
> [Message sent by forum member 'russpet' (russpet)]
>
> http://forums.java.net/jive/thread.jspa?messageID=322214
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>