CacheFilter - supports GZIP

View: New views
2 Messages — Rating Filter:   Alert me  

CacheFilter - supports GZIP

by Lars Torunski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have read things like - OS Cache Filter now supports GZIP compression in the filter chain.
What does this mean actually? I can't find any decent info on it.

My application uses the CacheFilter. So should I ALWAYS gzip my content before handling over to the CacheFilter and then will the cache filter store a gzipped version  AND an uncompressed version when it is cache?

So when it the next request needs to be served then the filter will check the accepts header to see if the client accepts gzip, if so return the gzipped version or else return an uncompressed version?

I am assuming it doesnt zip/unzip on the fly for every request?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=612533&messageID=708498#708498


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: CacheFilter - supports GZIP

by Lars Torunski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OSCache supports gzip in the filter chain since version 2.2. Read CACHE-155 for further details.

In the web.xml the CacheFilter has been added before the gzip filter. OSCache will cache the gzip compressed content. If a browser requests the same content with the http header Accept-Encoding gzip, the CacheFilter will deliver the compressed content. If the http header isn't set, the CacheFilter will uncompress the content and deliver it to the browser on the fly.

This maybe a performance drawback, but most browsers will set the Accept-Encoding gzip, hence due to the bandwidth reduction and reduced cycle times in the CacheFilter you will gain more advantages than any drawbacks.

The CacheFilter won't compress any content for you.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=612533&messageID=709694#709694


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...