Until fairly recently, I used shared hosting for my sites. Now I also have a VPS server in my portfolio.
My understanding is that it is better to configure caching right in the Apache config file, rather than in .htaccess - as long as I know what I want for the sites being run on that VPS.
So, if I know that I want to have same configuration for all of the sites when about browser cache settings for images, CSS, javascript, and HTML files, what should I do?
Is it just about editing httpd.conf or there's more to it?
When I checked a page about caching at Apache's site... phew... too many things as caching is not only about client side, but there are all sorts of cache related configurations on the server itself.
I don't want to run away from all of that. In contrary, I would like to use an opportunity and give a chance to that server to run fast.
How would you outline main steps for configuring caching on Apache server, including both client and server side (if it can be said in that way)?
Thank you