Guest Geoff Posted May 30, 2011 Posted May 30, 2011 See http://www.askapache.com/htaccess/using-ht...g-with-htaccess
jje Posted May 30, 2011 Posted May 30, 2011 Moving to Website Management & Coding, as this question is not related to the service HelioHost provide.
RJ Consulting Posted May 30, 2011 Author Posted May 30, 2011 Thanks. That reference is what I needed. Now to test how well it works...
Guest Geoff Posted May 30, 2011 Posted May 30, 2011 BTW, you might look into offline web applications if you are setting your cache that long.
RJ Consulting Posted June 1, 2011 Author Posted June 1, 2011 Noted. Cache-control is new to me, so I'm starting with recommendations I discover. Also, is mod_deflate installed / enabled? I'd like to take advantage of Gzip's compression, but am not noticing a difference when I insert the following into my personal root level .htaccess: <IfModule mod_deflate.c> <FilesMatch "\.(js|css)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> Thanks, rjconsul
Byron Posted June 1, 2011 Posted June 1, 2011 No mod_deflate is not enabled but you can use this on any of your pages that end in .php Insert this at the very top of your page: <?php ob_start("ob_gzhandler"); ?>
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now