homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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

5+ Year Member

Msg#: 4290170 posted 2:58 pm on Mar 31, 2011 (gmt 0)


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?




WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4290170 posted 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.


5+ Year Member

Msg#: 4290170 posted 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