kilaz
Senior Member
Last edited:
some source i cant remember said:You need to have Apache's mod_expires on your server for this to work. If you have access to your servers config files, check if the following line is commented out in the load modules section:
LoadModule expires_module modules/mod_expires.so
In your .htaccess or preferably virtual host container insert something like this:
ExpiresActive On
ExpiresByType text/html "access plus 30 seconds"
ExpiresByType text/css "access plus 2 weeks"
ExpiresByType text/javascript "access plus 2 weeks"
ExpiresByType image/png "access plus 1 month"
Modify to your needs. For every file type you would like to cache, insert an extra statement. For my server, I don't want text/html to be cached for long, because they are dynamic anyway and I want to see how often pages are requested. I use compression for these files, but we'll talk about that later.
Isn't there a plugin that does this?
such as WP Super Cache ..would take care of it?
Yes as far as setting up a cache but not with using the zlib stuff. I use WPSuperCache and the above methods I posted with my WP blogs. Between the two its really made them faster.
-k-
By any chance, do you know offhand of an app or browser extension that could measure load times? I could use it just as a comparison betw diff setups. This is a nice meth, thx given. Actually had a post about page loading a while back but no response.
what about the "x" and that "?"...
We get it, advertisements are annoying!
Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.