Welcome to WebmasterWorld Guest from 54.92.153.90

Forum Moderators: Ocean10000 & incrediBILL & phranque

Gzip Cacher?

     
6:29 pm on May 23, 2018 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38170
votes: 69


I want a caching system for Apache (or compat) that will:

- Cache entire site
- Gzip those results
- Serve the Gzipped cached pages as appropriate

Is there such a beast? Or do I have to write one?

Why would I want it?
#1 Speed.
-- Eliminate all of your CMS overhead entirely.
-- You'd cut out Apache from having to Gzip the pages on the fly

I'd think you would cut your per-page over head by 50% and cut server load by 25%

#2 Code Modification
-- In the step before gzipping, you could do things like clean CMS identities from the code.
-- You could embed images into the source so that it would cut repetitive calls back to your server.

#3 Security:
-- You hide your CMS from public view by making it only reachable from the local host (the cacher) - thus, you'd be immune to alot of security issues. (there would be some url bit twiddling needed to make it work)
9:32 pm on May 23, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Sept 25, 2005
posts:1834
votes: 271


The gzip compression overhead is pretty minimal these days, but you can serve pre-compressed files with mod_deflate. Not all clients/proxies support gzip, so you'll have to decide if you want to support those. If you do, you'll need to cache two versions of each file.

And if you're not going to forward uncached requests to the backend, of course you'll need to make sure your cache is always fully primed. Apache has a file cache [httpd.apache.org] but it looks pretty limited. Might want to consider putting something more specialized in front of Apache for this purpose. And to prime and manage your cache, it's probably best to write something tailored specifically to the site.

Full-page caches can be a pain to maintain, but if it suits the site, there's nothing faster. My holy grail.

A CDN might also work, but purging can be slow/problematic.
2:54 pm on May 25, 2018 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38170
votes: 69


Ya, I get all that. No software to do this off-the-shelf? I'm surprised.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members