views:

79

answers:

2

I have found a number of articles such as this one that talk about using htaccess to cache images and files on your webserver.

But which is best, why, and what is the best implementation of this?

A: 

The best way is to leave the things alone and let the web server to handle this.
Not every article is worth to read.

Col. Shrapnel
Adding compression and cache control rules to your site can seriously speed it up. This results in better user experience, less bandwidth used, and possibly even better search engine rankings. See the Google Speed pages for more information.
Chris
@Chris Your webserver **already** has built in cache control
Col. Shrapnel
+2  A: 

Hi, sometime ago, I wrote my own personal take on this subject. I've written two blog posts about it, and give some hints and tips about what I've used to get the best out of caching and compression. here's the links:

  1. Apache 101 cache control
  2. Apache 101 compressing files

I love this subject by the way, so you're more than welcome to ask any more questions :-)

Hope they help you

Marcos Placona
Did you notice it doesn't work on your site?
Col. Shrapnel
I've disabled most of it die to an experience I;m doing with CDN's :-)
Marcos Placona
I can't see much cdn requests on your page. Just usual conditional get requests, served by apache by default.
Col. Shrapnel