mod_deflate: Best way to compress? Via Cpanel vs .htaccess vs php snippet?
mod_deflate: Best way to compress? Via Cpanel vs .htaccess vs php snippet? Im trying to speed up my site. compression is one of the ways i intend to do it. Those are all the ways I've found. What are the plus and minuses of each? Do you prefer one way over the other and why? Thanks!
Ps. Hostgator only uses mod_deflate as far as I know. O is that just in the Cpanel way. Maybe I could gzip or other using one of the other methods??
OK here is what I ended up with. After reading for weeks on this I think this is the best setup. The only thing it seems I went out on a limb on is caching html for a long time. I toyed with this in my brain. Many say cache css for a long time. Well I can't cache css, or js for that matter, without caching the html. When ever I edit one 9 times out of 10 I'm editing one of the others. Well if one is a new copy and one isn't the user will very likely see something wonky or unstyled, or un-js'ed.
My question is this? Am I missing something about caching the html? Or is the only downside the user waits 90 days to see the updated copy? Additionally Google always sees the newset copy correct? Thanks for your knowledge!