homepage Welcome to WebmasterWorld Guest from 107.21.187.131
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Caching the result of compression
How to avoid recompressing same unchanging data for lower latency&CPU load
true_INFP




msg:4290172
 2:58 pm on Mar 31, 2011 (gmt 0)

Hello,

If you have static pages or unchanging files on your server that are compressible, it is a good idea to compress them to save bandwidth.

However, when you enable mod_gzip or mod_deflate, will the result of the compression be cached in RAM so the data won't be redundantly re-compressed each time it is requested?

If not, is there a way to achieve that? Once a file or static page is compressed, it is stored in a RAM buffer and if the time stamp of the original file does not change, the cached compressed version is served directly?

Thanks.

 

lammert




msg:4290514
 2:53 am on Apr 1, 2011 (gmt 0)

You can use the content negotiation option of Apache to do this. There is a somewhat dated discussion about this at [webmasterworld.com...] which covers both the techniques and performance part. Please remember that the thread is some years old and both hardware and software techniques may have improved over time.

true_INFP




msg:4290593
 8:20 am on Apr 1, 2011 (gmt 0)

Thank you very much--exactly what I was looking for! :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved